1
0
Fork 0
mirror of synced 2024-06-10 22:54:41 +12:00

Fix windows error, that linux settings are shown

This commit is contained in:
Dummerle 2021-12-05 21:26:04 +01:00
parent ea0c153a23
commit 387793dbeb
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -278,11 +278,6 @@ class GameSettings(QWidget, Ui_GameSettings):
else:
self.skip_update.setCurrentIndex(0)
if self.igame and self.igame.platform == "Mac":
self.linux_settings_scroll.setVisible(False)
else:
self.linux_settings_scroll.setVisible(True)
wrapper = self.core.lgd.config.get(self.game.app_name, "wrapper", fallback="")
self.wrapper.setText(wrapper)
@ -290,6 +285,11 @@ class GameSettings(QWidget, Ui_GameSettings):
if platform.system() != "Windows":
self.linux_settings.update_game(app_name)
if self.igame and self.igame.platform == "Mac":
self.linux_settings_scroll.setVisible(False)
else:
self.linux_settings_scroll.setVisible(True)
proton = self.core.lgd.config.get(f"{app_name}", "wrapper", fallback="").replace('"', "")
if proton and "proton" in proton:
self.proton_prefix.setEnabled(True)