Fix conflict error with unreal engine assets, which have no image
This commit is contained in:
parent
f32eb5cbc4
commit
89e589da11
2 changed files with 6 additions and 1 deletions
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue