From 90667b0f31330e16d733409f764f1451f63b2898 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Thu, 15 Jun 2023 17:53:48 +0200 Subject: [PATCH] Fix details_window logic --- src/details_window.py | 2 +- src/store/store.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/details_window.py b/src/details_window.py index 25d6069..33feff3 100644 --- a/src/details_window.py +++ b/src/details_window.py @@ -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) diff --git a/src/store/store.py b/src/store/store.py index c65b7c8..fed0d60 100644 --- a/src/store/store.py +++ b/src/store/store.py @@ -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",