The import Config/Theme dialog no longer restarts HyprPanel on cancellation. (#142)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user