Make pixbufs appear consistent
This commit is contained in:
@@ -117,7 +117,6 @@ class game(Gtk.Box): # pylint: disable=invalid-name
|
|||||||
save_game(self.parent_widget, data)
|
save_game(self.parent_widget, data)
|
||||||
|
|
||||||
def get_cover(self):
|
def get_cover(self):
|
||||||
|
|
||||||
# If the cover is already in memory, return
|
# If the cover is already in memory, return
|
||||||
if self.game_id in self.parent_widget.pixbufs:
|
if self.game_id in self.parent_widget.pixbufs:
|
||||||
return self.parent_widget.pixbufs[self.game_id]
|
return self.parent_widget.pixbufs[self.game_id]
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ def save_cover(parent_widget, game_id, cover_path=None, pixbuf=None):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
open_file = Gio.File.new_for_path(str(covers_dir / f"{game_id}.tiff"))
|
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(
|
pixbuf.save_to_streamv_async(
|
||||||
open_file.replace(None, False, Gio.FileCreateFlags.NONE),
|
open_file.replace(None, False, Gio.FileCreateFlags.NONE),
|
||||||
"tiff",
|
"tiff",
|
||||||
|
|||||||
Reference in New Issue
Block a user