1
0
Fork 0
mirror of synced 2024-06-29 03:31:06 +12:00

Fix conflict error with unreal engine assets, which have no image

This commit is contained in:
Dummerle 2022-01-07 01:49:29 +01:00
parent f32eb5cbc4
commit 89e589da11
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1
2 changed files with 6 additions and 1 deletions

View file

@ -82,8 +82,12 @@ class GamesTab(QStackedWidget, Ui_GamesTab):
self.no_assets = []
for i in self.game_list:
if i.app_name.startswith("UE"):
if i.app_name.startswith("UE_4"):
pixmap = get_pixmap(i.app_name)
if pixmap.isNull():
continue
self.ue_name = i.app_name
logger.debug(f"Found Unreal AppName {self.ue_name}")
break
else:
logger.warning("No Unreal engine in library found")

View file

@ -57,6 +57,7 @@ class GameListHeadBar(QWidget):
self.filter.setCurrentIndex(self.settings.value("filter", 0, int))
except TypeError:
self.settings.setValue("filter", 0)
self.filter.setCurrentIndex(0)
self.filter.currentIndexChanged.connect(self.filter_changed)
self.layout().addStretch(1)