The import Config/Theme dialog no longer restarts HyprPanel on cancellation. (#142)

This commit is contained in:
Jas Singh
2024-08-16 23:12:38 -07:00
committed by GitHub
parent 1fbe1d77fc
commit 7ccb172bc7

View File

@@ -122,6 +122,11 @@ export const importFiles = (themeOnly: boolean = false): void => {
let response = dialog.run(); let response = dialog.run();
if (response === Gtk.ResponseType.CANCEL) {
dialog.destroy();
return;
}
if (response === Gtk.ResponseType.ACCEPT) { if (response === Gtk.ResponseType.ACCEPT) {
let filePath = dialog.get_filename(); let filePath = dialog.get_filename();
let file = Gio.File.new_for_path(filePath as string); let file = Gio.File.new_for_path(filePath as string);