1
0
Fork 0
mirror of synced 2024-06-28 03:00:49 +12:00

Add double check for game assets and fix error in cloud save dialog

This commit is contained in:
lennard 2023-04-02 17:14:44 +02:00 committed by Dummerle
parent 574e491cbf
commit 3ec6a45cc3
2 changed files with 3 additions and 3 deletions

View file

@ -54,8 +54,8 @@ class CloudSaveDialog(QDialog, Ui_SyncSaveDialog):
else:
self.status = self.UPLOAD
self.sync_ui.date_info_local.setText(dt_local.strftime("%A, %d. %B %Y %X"))
self.sync_ui.date_info_remote.setText(dt_remote.strftime("%A, %d. %B %Y %X"))
self.sync_ui.date_info_local.setText(dt_local.strftime("%A, %d. %B %Y %X") if dt_local else "None")
self.sync_ui.date_info_remote.setText(dt_remote.strftime("%A, %d. %B %Y %X") if dt_remote else "None")
self.sync_ui.icon_local.setPixmap(icon("mdi.harddisk", "fa.desktop").pixmap(128, 128))
self.sync_ui.icon_remote.setPixmap(icon("mdi.cloud-outline", "ei.cloud").pixmap(128, 128))

View file

@ -407,7 +407,7 @@ class RareGame(RareGameSlim):
@return bool If the game doesn't have assets
"""
return not self.game.asset_infos
return not self.game.asset_infos or not next(iter(self.game.asset_infos.values())).app_name
@property
def is_origin(self) -> bool: