From 4ff236ed44db59fbce4fa16bc12fe74ae2760f49 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Thu, 18 May 2023 15:42:06 +0200 Subject: [PATCH] Fix bug --- src/preferences.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/preferences.py b/src/preferences.py index b348fa5..f331c98 100644 --- a/src/preferences.py +++ b/src/preferences.py @@ -320,4 +320,6 @@ class PreferencesWindow(Adw.PreferencesWindow): (value := widget.get_property(prop[0])) and value != prop[1] for widget, prop in self.import_changed_widgets.items() ): - self.win.get_application().on_import_action() + # The timeout is a hack to circumvent a GTK bug that I'm too lazy to report: + # The window would stay darkened because of the import dialog for some reason + GLib.timeout_add(1, self.win.get_application().on_import_action())