Fix conflict error with unreal engine assets, which have no image
This commit is contained in:
parent
f32eb5cbc4
commit
89e589da11
|
@ -82,8 +82,12 @@ class GamesTab(QStackedWidget, Ui_GamesTab):
|
||||||
self.no_assets = []
|
self.no_assets = []
|
||||||
|
|
||||||
for i in self.game_list:
|
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
|
self.ue_name = i.app_name
|
||||||
|
logger.debug(f"Found Unreal AppName {self.ue_name}")
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
logger.warning("No Unreal engine in library found")
|
logger.warning("No Unreal engine in library found")
|
||||||
|
|
|
@ -57,6 +57,7 @@ class GameListHeadBar(QWidget):
|
||||||
self.filter.setCurrentIndex(self.settings.value("filter", 0, int))
|
self.filter.setCurrentIndex(self.settings.value("filter", 0, int))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
self.settings.setValue("filter", 0)
|
self.settings.setValue("filter", 0)
|
||||||
|
self.filter.setCurrentIndex(0)
|
||||||
|
|
||||||
self.filter.currentIndexChanged.connect(self.filter_changed)
|
self.filter.currentIndexChanged.connect(self.filter_changed)
|
||||||
self.layout().addStretch(1)
|
self.layout().addStretch(1)
|
||||||
|
|
Loading…
Reference in a new issue