Fix details_window logic

This commit is contained in:
kramo
2023-06-15 17:53:48 +02:00
parent 39bc64c136
commit 90667b0f31
2 changed files with 2 additions and 1 deletions

View File

@@ -209,7 +209,7 @@ class DetailsWindow(Adw.Window):
# Get a cover from SGDB if none is present
if not self.game_cover.get_pixbuf():
self.game.set_loading(1)
sgdb_manager: SGDBManager = shared.store.managers[SGDBManager]
sgdb_manager: SGDBManager = shared.store.managers[SGDBManager][0]
sgdb_manager.reset_cancellable()
pipeline = Pipeline(self.game, {}, (sgdb_manager,))
pipeline.connect("advanced", self.update_cover_callback)

View File

@@ -45,6 +45,7 @@ class Store:
# Cleanup removed games
if game.removed:
# TODO: come back to this later
for path in (
shared.games_dir / f"{game.game_id}.json",
shared.covers_dir / f"{game.game_id}.tiff",