Various changes

- Removed useless format manager
- Moved pipeline to its own file
- Fixed steam source next not returning game
- Changed pipeline order
This commit is contained in:
GeoffreyCoulaud
2023-05-24 19:34:07 +02:00
parent e7e30c8ac5
commit 1d2253ff94
8 changed files with 103 additions and 106 deletions

View File

@@ -43,7 +43,6 @@ from src.importer.sources.steam_source import (
from src.preferences import PreferencesWindow
from src.store.managers.display_manager import DisplayManager
from src.store.managers.file_manager import FileManager
from src.store.managers.format_update_manager import FormatUpdateManager
from src.store.managers.sgdb_manager import SGDBManager
from src.store.managers.steam_api_manager import SteamAPIManager
from src.store.store import Store
@@ -80,7 +79,6 @@ class CartridgesApplication(Adw.Application):
# Create the games store ready to load games from disk
if not shared.store:
shared.store = Store()
shared.store.add_manager(FormatUpdateManager())
shared.store.add_manager(DisplayManager())
# Load games from disk
@@ -238,6 +236,6 @@ class CartridgesApplication(Adw.Application):
def main(version): # pylint: disable=unused-argument
log_level = os.environ.get("LOGLEVEL", "ERROR").upper()
logging.basicConfig(level="DEBUG") # TODO remove debug
logging.basicConfig(level="INFO") # TODO remove before release, use env
app = CartridgesApplication()
return app.run(sys.argv)