This commit is contained in:
kramo
2023-04-16 12:52:06 +02:00
parent aea8a6ed5f
commit 4b11a2737a
5 changed files with 15 additions and 19 deletions

View File

@@ -88,7 +88,7 @@ def create_details_window(win, game_id=None):
)
apply_button = Gtk.Button.new_with_label(_("Apply"))
game_cover.new_pixbuf(path=win.games[game_id].get_cover_path())
game_cover.new_pixbuf(win.games[game_id].get_cover_path())
if game_cover.get_pixbuf():
cover_button_delete_revealer.set_reveal_child(True)
else:
@@ -230,7 +230,7 @@ def create_details_window(win, game_id=None):
cover_button_delete_revealer.set_reveal_child(True)
cover_changed = True
game_cover.new_pixbuf(
path=resize_animation(path)
resize_animation(path)
if str(path).rsplit(".", maxsplit=1)[-1] == "gif"
else path
)

View File

@@ -57,7 +57,7 @@ def save_cover(
if animation_path:
copyfile(animation_path, win.covers_dir / f"{game_id}.gif")
win.game_covers[game_id].new_pixbuf(path=animation_path)
win.game_covers[game_id].new_pixbuf(animation_path)
return
if not pixbuf:
@@ -74,4 +74,4 @@ def save_cover(
["8"] if win.schema.get_boolean("high-quality-images") else ["7"],
)
win.game_covers[game_id].new_pixbuf(pixbuf=pixbuf)
win.game_covers[game_id].new_pixbuf(win.covers_dir / f"{game_id}.tiff")