This commit is contained in:
kramo
2023-04-16 11:04:00 +02:00
parent 24ad3369c7
commit aea8a6ed5f
6 changed files with 53 additions and 37 deletions

View File

@@ -62,7 +62,11 @@ class Game(Gtk.Box):
self.loading = 0
self.title.set_label(self.name)
self.game_cover = GameCover(self.cover, path=self.get_cover_path())
if self.game_id in self.win.game_covers:
self.win.game_covers[self.game_id].add_picture(self.cover)
else:
game_cover = GameCover({self.cover}, path=self.get_cover_path())
self.win.game_covers[self.game_id] = game_cover
self.event_contoller_motion = Gtk.EventControllerMotion.new()
self.add_controller(self.event_contoller_motion)
@@ -124,8 +128,6 @@ class Game(Gtk.Box):
if cover_path.is_file():
return cover_path
return None
def show_play(self, _widget, *_unused):
self.play_revealer.set_reveal_child(True)
self.title_revealer.set_reveal_child(False)