Consider games with no config id as uninstalled

This commit is contained in:
Mathieu Comandon 2019-01-30 17:33:10 -08:00
parent 2b4a46b93f
commit 7614441791

View file

@ -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"))