Fix windows error, that linux settings are shown
This commit is contained in:
parent
ea0c153a23
commit
387793dbeb
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue