This commit is contained in:
kramo
2023-04-19 21:14:00 +02:00
parent 9c38d10ff8
commit 259891fdc5
9 changed files with 85 additions and 86 deletions

View File

@@ -15,7 +15,7 @@ class SGDBSave:
# Wrap the function in another one as Gio.Task.run_in_thread does not allow for passing args
def create_func(game):
def wrapper(task, *_unused):
def wrapper(task, *_args):
self.update_cover(
task,
game,
@@ -85,7 +85,7 @@ class SGDBSave:
task.return_value(game[0])
return
tmp_file = Gio.File.new_tmp(None)[0]
tmp_file = Gio.File.new_tmp()[0]
Path(tmp_file.get_path()).write_bytes(response.content)
save_cover(
@@ -122,4 +122,4 @@ class SGDBSave:
def response(self, _widget, response):
if response == "open_preferences":
self.win.get_application().on_preferences_action(None, page_name="sgdb")
self.win.get_application().on_preferences_action(page_name="sgdb")