Fix, thanks Slav

This commit is contained in:
Jazzzny
2023-04-28 18:17:23 -04:00
parent eeb2e6cb1a
commit aae6cc705f
2 changed files with 10 additions and 0 deletions

View File

@@ -71,6 +71,14 @@ class GenerateDefaults:
global_settings.GlobalEnviromentSettings().write_property("MacBookPro_TeraScale_2_Accel", False)
self.constants.allow_ts2_accel = False
if self.model in ["MacBookAir4,1","MacBookAir4,2","MacBookPro8,1","MacBookPro8,2","MacBookPro8,3","Macmini5,1"]:
colorsync_status = global_settings.GlobalEnviromentSettings().read_property("Disable_ColorSync_Downgrade")
if colorsync_status is True:
self.constants.disable_cat_colorsync = True
else:
global_settings.GlobalEnviromentSettings().write_property("Disable_ColorSync_Downgrade", False)
self.constants.disable_cat_colorsync = False
if self.model in smbios_data.smbios_dictionary:
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] >= cpu_data.cpu_data.skylake.value:
# On 2016-2017 MacBook Pros, 15" devices used a stock Samsung SSD with IONVMeController

View File

@@ -3157,9 +3157,11 @@ class wx_python_gui:
def disable_colorsync_click(self, event=None):
if self.set_colorsync_checkbox.GetValue():
logging.info("ColorSync Patch Disabled")
global_settings.GlobalEnviromentSettings().write_property("Disable_ColorSync_Downgrade", True)
self.constants.disable_cat_colorsync = True
else:
logging.info("ColorSync Patch Enabled")
global_settings.GlobalEnviromentSettings().write_property("Disable_ColorSync_Downgrade", False)
self.constants.disable_cat_colorsync = False
def force_web_drivers_click(self, event=None):