🐛 Fixed GTK race condition in pipelines
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
from src import shared
|
||||
from src.game import Game
|
||||
from src.store.managers.file_manager import FileManager
|
||||
from src.store.managers.sgdb_manager import SGDBManager
|
||||
from src.store.managers.steam_api_manager import SteamAPIManager
|
||||
from src.store.managers.manager import Manager
|
||||
|
||||
|
||||
class DisplayManager(Manager):
|
||||
"""Manager in charge of adding a game to the UI"""
|
||||
|
||||
run_after = set((FileManager,))
|
||||
run_after = set((SteamAPIManager, SGDBManager))
|
||||
|
||||
def final_run(self, game: Game) -> None:
|
||||
# TODO decouple a game from its widget
|
||||
# TODO make the display manager async
|
||||
shared.win.games[game.game_id] = game
|
||||
game.update()
|
||||
|
||||
Reference in New Issue
Block a user