Fix #223: Runtime seen as updating when launching game with url scheme

This commit is contained in:
Xodetaetl 2015-12-08 22:22:23 +01:00
parent dd846ae6bf
commit 7993962fea
2 changed files with 4 additions and 1 deletions

View file

@ -208,6 +208,7 @@ if game_slug or installer:
if lutris.is_running():
lutris.run_game(db_game['id'])
else:
runtime.update()
lutris_game = Game(db_game['id'])
lutris_game.play()
else:
@ -215,6 +216,7 @@ if game_slug or installer:
if lutris.is_running():
lutris.install_game(installer or game_slug)
else:
runtime.update()
InstallerDialog(installer or game_slug)
GObject.threads_init()
Gtk.main()

View file

@ -54,7 +54,8 @@ def get_runtimes():
created_at = time.strptime(created_at[:created_at.find('.')],
"%Y-%m-%dT%H:%M:%S")
if get_created_at(name) < created_at:
STATUS_UPDATER("Updating Runtime")
if STATUS_UPDATER:
STATUS_UPDATER("Updating Runtime")
logger.debug('Updating runtime %s', name)
url = runtime['url']
archive_path = os.path.join(RUNTIME_DIR, os.path.basename(url))