diff --git a/bottles/frontend/main.py b/bottles/frontend/main.py index a879b1f3fa..b51059b6bd 100644 --- a/bottles/frontend/main.py +++ b/bottles/frontend/main.py @@ -369,7 +369,7 @@ def set_path(_dialog, response): if response != Gtk.ResponseType.ACCEPT: return - def finish(result, error=False): + def finish(_widget, result, error=False): if result.status: self.win.show_toast(_("Configuration imported successfully")) else: @@ -409,7 +409,7 @@ def set_path(_dialog, response): if response != Gtk.ResponseType.ACCEPT: return - def finish(result, error=False): + def finish(_widget, result, error=False): if result.status: self.win.show_toast(_("Backup restored successfully")) else: @@ -418,7 +418,7 @@ def finish(result, error=False): self.win.show_toast(_("Importing backup…")) RunAsync( task_func=BackupManager.import_backup, - callback=self.finish, + callback=finish, window=self.win, scope="full", path=dialog.get_file().get_path(),