gui_settings.py: Resolve TS2 toggle not holding

This commit is contained in:
Mykola Grymalyuk
2023-11-08 11:41:29 -07:00
parent 974a560cde
commit fbedb6f0d2
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -1,6 +1,8 @@
# OpenCore Legacy Patcher changelog
## 1.3.0
- Resolve `TeraScale 2 Acceleration` checkbox in Settings not being saved
- Thanks @rtd1250
## 1.2.0
- Resolve application not existing if user dismisses an update instead of installing
+4 -3
View File
@@ -286,7 +286,7 @@ class SettingsFrame(wx.Frame):
"tampering or corruption."
],
},
"Show OpenCore Boot Picker": {
"type": "checkbox",
"value": self.constants.showpicker,
@@ -685,6 +685,7 @@ class SettingsFrame(wx.Frame):
"By default this is disabled due to",
"common GPU failures on these models.",
],
"override_function": self._update_global_settings,
"condition": not bool(self.constants.computer.real_model not in ["MacBookPro8,2", "MacBookPro8,3"])
},
"wrap_around 1": {
@@ -856,7 +857,7 @@ class SettingsFrame(wx.Frame):
"Export constants.py values to a txt file.",
],
},
"Developer Root Volume Patching": {
"type": "title",
},
@@ -1315,7 +1316,7 @@ Hardware Information:
def on_test_exception(self, event: wx.Event) -> None:
raise Exception("Test Exception")
def on_mount_root_vol(self, event: wx.Event) -> None:
if os.geteuid() != 0:
wx.MessageDialog(self.parent, "Please relaunch as Root to mount the Root Volume", "Error", wx.OK | wx.ICON_ERROR).ShowModal()