mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
Fix, thanks Slav
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user