Make pixbufs appear consistent

This commit is contained in:
kramo
2023-04-08 09:18:05 +02:00
parent b86f0f9217
commit 05004b8225
2 changed files with 0 additions and 2 deletions

View File

@@ -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]

View File

@@ -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",