mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Consider games with no config id as uninstalled
This commit is contained in:
parent
2b4a46b93f
commit
7614441791
|
@ -55,11 +55,11 @@ class Game(GObject.Object):
|
|||
self.directory = game_data.get("directory") or ""
|
||||
self.name = game_data.get("name") or ""
|
||||
|
||||
self.is_installed = bool(game_data.get("installed"))
|
||||
self.game_config_id = game_data.get("configpath") or ""
|
||||
self.is_installed = bool(game_data.get("installed")) and self.game_config_id
|
||||
self.platform = game_data.get("platform") or ""
|
||||
self.year = game_data.get("year") or ""
|
||||
self.lastplayed = game_data.get("lastplayed") or 0
|
||||
self.game_config_id = game_data.get("configpath") or ""
|
||||
self.steamid = game_data.get("steamid") or ""
|
||||
self.has_custom_banner = bool(game_data.get("has_custom_banner"))
|
||||
self.has_custom_icon = bool(game_data.get("has_custom_icon"))
|
||||
|
|
Loading…
Reference in a new issue