Fix details_window logic
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user