Various fixes
This commit is contained in:
@@ -11,5 +11,4 @@ class FileManager(Manager):
|
||||
run_after = set((SteamAPIManager, SGDBManager, FormatUpdateManager))
|
||||
|
||||
def run(self, game: Game) -> None:
|
||||
# TODO make game.save (disk) not trigger game.update (UI)
|
||||
game.save()
|
||||
|
||||
@@ -16,5 +16,4 @@ class FormatUpdateManager(Manager):
|
||||
def run(self, game: Game) -> None:
|
||||
if game.version is None:
|
||||
self.v1_5_to_v2_0(game)
|
||||
# TODO make game.save (disk) not trigger game.update (UI)
|
||||
game.save()
|
||||
|
||||
@@ -12,7 +12,7 @@ class Manager:
|
||||
in that case a new cancellable must be generated for new tasks to run.
|
||||
"""
|
||||
|
||||
run_after: set[type["Manager"]]
|
||||
run_after: set[type["Manager"]] = set()
|
||||
|
||||
cancellable: Gio.Cancellable
|
||||
errors: list[Exception]
|
||||
@@ -42,7 +42,7 @@ class Manager:
|
||||
return errors
|
||||
|
||||
@abstractmethod
|
||||
def run(self, game: Game) -> None:
|
||||
def run(self, game: Game, cancellable: Gio.Cancellable) -> None:
|
||||
"""Pass the game through the manager.
|
||||
May block its thread.
|
||||
May not raise exceptions, as they will be silently ignored."""
|
||||
|
||||
Reference in New Issue
Block a user