From dc0d7304f131d836ea46cbb9fca6d2aa942ed0ea Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:54:12 +0200 Subject: [PATCH] Don't allow multiple imports at once --- src/importer/importer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/importer/importer.py b/src/importer/importer.py index 86ead2e..8b30c6b 100644 --- a/src/importer/importer.py +++ b/src/importer/importer.py @@ -91,6 +91,8 @@ class Importer(ErrorProducer): def run(self): """Use several Gio.Task to import games from added sources""" + shared.win.get_application().lookup_action("import").set_enabled(False) + self.create_dialog() # Collect all errors and reset the cancellables for the managers @@ -221,6 +223,7 @@ class Importer(ErrorProducer): self.import_dialog.close() self.summary_toast = self.create_summary_toast() self.create_error_dialog() + shared.win.get_application().lookup_action("import").set_enabled(True) def create_error_dialog(self): """Dialog containing all errors raised by importers"""