From 05004b8225ba3e077651067c04c4fb06b7390473 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Sat, 8 Apr 2023 09:18:05 +0200 Subject: [PATCH] Make pixbufs appear consistent --- src/game.py | 1 - src/utils/save_cover.py | 1 - 2 files changed, 2 deletions(-) diff --git a/src/game.py b/src/game.py index d678aca..a505f8c 100644 --- a/src/game.py +++ b/src/game.py @@ -117,7 +117,6 @@ class game(Gtk.Box): # pylint: disable=invalid-name save_game(self.parent_widget, data) def get_cover(self): - # If the cover is already in memory, return if self.game_id in self.parent_widget.pixbufs: return self.parent_widget.pixbufs[self.game_id] diff --git a/src/utils/save_cover.py b/src/utils/save_cover.py index 0681a3d..f21a77f 100644 --- a/src/utils/save_cover.py +++ b/src/utils/save_cover.py @@ -35,7 +35,6 @@ def save_cover(parent_widget, game_id, cover_path=None, pixbuf=None): pass open_file = Gio.File.new_for_path(str(covers_dir / f"{game_id}.tiff")) - parent_widget.pixbufs[game_id] = pixbuf pixbuf.save_to_streamv_async( open_file.replace(None, False, Gio.FileCreateFlags.NONE), "tiff",