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

Make ProtonDB labels invisible, if it is an unreal engine

This commit is contained in:
Dummerle 2022-01-08 17:38:17 +01:00
parent 89e589da11
commit 241d0a3b3c
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1
2 changed files with 11 additions and 3 deletions

View file

@ -177,13 +177,17 @@ class GameInfo(QWidget, Ui_GameInfo):
self.repair_button.setDisabled(False)
self.game_actions_stack.setCurrentIndex(0)
if platform.system() != "Windows":
is_ue = self.core.get_asset(app_name).namespace == "ue"
self.grade.setVisible(not is_ue)
self.lbl_grade.setVisible(not is_ue)
if platform.system() != "Windows" and not is_ue:
self.grade.setText(self.tr("Loading"))
self.steam_worker.set_app_name(self.game.app_name)
QThreadPool.globalInstance().start(self.steam_worker)
if len(self.verify_threads.keys()) == 0 or not self.verify_threads.get(
self.game.app_name
self.game.app_name
):
self.verify_widget.setCurrentIndex(0)
elif self.verify_threads.get(self.game.app_name):

View file

@ -102,7 +102,11 @@ class UninstalledInfo(QWidget, Ui_GameInfo):
self.install_size.setText("N/A")
self.install_path.setText("N/A")
if platform.system() != "Windows":
is_ue = self.core.get_asset(game.app_name).namespace == "ue"
self.grade.setVisible(not is_ue)
self.lbl_grade.setVisible(not is_ue)
if platform.system() != "Windows" and not is_ue:
self.grade.setText(self.tr("Loading"))
self.steam_worker.set_app_name(game.app_name)
QThreadPool.globalInstance().start(self.steam_worker)