mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
parent
b5879ee4d2
commit
ee3133f1e9
|
@ -384,6 +384,12 @@ class Game(GObject.Object):
|
||||||
self.emit("game-updated")
|
self.emit("game-updated")
|
||||||
|
|
||||||
def save_lastplayed(self):
|
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
|
"""Save only the lastplayed field- do not restore any other values the user may have changed
|
||||||
in another window."""
|
in another window."""
|
||||||
games_db.update_existing(id=self.id, slug=self.slug, lastplayed=self.lastplayed)
|
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.runner_name = self.runner_name
|
||||||
self.game.is_installed = True
|
self.game.is_installed = True
|
||||||
self.game.config = self.lutris_config
|
self.game.config = self.lutris_config
|
||||||
self.game.save(save_config=True)
|
self.game.save()
|
||||||
self.destroy()
|
self.destroy()
|
||||||
self.saved = True
|
self.saved = True
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -147,7 +147,7 @@ def fill_missing_platforms():
|
||||||
game.set_platform_from_runner()
|
game.set_platform_from_runner()
|
||||||
if game.platform:
|
if game.platform:
|
||||||
logger.info("Platform for %s set to %s", game.name, 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():
|
def run_all_checks():
|
||||||
|
|
Loading…
Reference in a new issue