Removed win.games

This commit is contained in:
GeoffreyCoulaud
2023-07-01 02:56:40 +02:00
parent b3c2437618
commit 8d082ab158
5 changed files with 6 additions and 14 deletions

View File

@@ -56,6 +56,7 @@ class CartridgesApplication(Adw.Application):
win = None
def __init__(self):
shared.store = Store()
super().__init__(
application_id=shared.APP_ID, flags=Gio.ApplicationFlags.FLAGS_NONE
)
@@ -82,12 +83,9 @@ class CartridgesApplication(Adw.Application):
"is-maximized", self.win, "maximized", Gio.SettingsBindFlags.DEFAULT
)
# Create the games store ready to load games from disk
if not shared.store:
shared.store = Store()
shared.store.add_manager(FileManager(), False)
shared.store.add_manager(DisplayManager())
# Load games from disk
shared.store.add_manager(FileManager(), False)
shared.store.add_manager(DisplayManager())
self.load_games_from_disk()
# Add rest of the managers for game imports