mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Fix #223: Runtime seen as updating when launching game with url scheme
This commit is contained in:
parent
dd846ae6bf
commit
7993962fea
|
@ -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()
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue