From fbedb6f0d2cc94ec7c4e523f1c530b1a2d5f7359 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Wed, 8 Nov 2023 11:41:29 -0700 Subject: [PATCH] gui_settings.py: Resolve TS2 toggle not holding --- CHANGELOG.md | 2 ++ resources/wx_gui/gui_settings.py | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca38bb884..85390d954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/resources/wx_gui/gui_settings.py b/resources/wx_gui/gui_settings.py index 99e377825..34a9fcc06 100644 --- a/resources/wx_gui/gui_settings.py +++ b/resources/wx_gui/gui_settings.py @@ -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()