Skip to content

Commit

Permalink
Doesn't work but a step closer
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEvilSkeleton committed Jul 29, 2023
1 parent fb9b356 commit 2291eb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bottles/frontend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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(),
Expand Down

0 comments on commit 2291eb9

Please sign in to comment.