mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
parent
b5879ee4d2
commit
ee3133f1e9
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue