Remove uses of save_config parameter.

Resolves #4692
This commit is contained in:
Daniel Johnson 2023-01-01 11:40:31 -05:00
parent b5879ee4d2
commit ee3133f1e9
3 changed files with 8 additions and 2 deletions

View file

@ -384,6 +384,12 @@ class Game(GObject.Object):
self.emit("game-updated")
def save_lastplayed(self):
"""Save only the platform field- do not restore any other values the user may have changed
in another window."""
games_db.update_existing(id=self.id, slug=self.slug, platform=self.platform)
self.emit("game-updated")
def save_platform(self):
"""Save only the lastplayed field- do not restore any other values the user may have changed
in another window."""
games_db.update_existing(id=self.id, slug=self.slug, lastplayed=self.lastplayed)

View file

@ -573,7 +573,7 @@ class GameDialogCommon(ModelessDialog, DialogInstallUIDelegate):
self.game.runner_name = self.runner_name
self.game.is_installed = True
self.game.config = self.lutris_config
self.game.save(save_config=True)
self.game.save()
self.destroy()
self.saved = True
return True

View file

@ -147,7 +147,7 @@ def fill_missing_platforms():
game.set_platform_from_runner()
if game.platform:
logger.info("Platform for %s set to %s", game.name, game.platform)
game.save(save_config=False)
game.save_platform()
def run_all_checks():