mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
GUI: Add conditional to Graphics override
This commit is contained in:
@@ -229,7 +229,8 @@ class SettingsFrame(wx.Frame):
|
||||
"""
|
||||
|
||||
models = [model for model in smbios_data.smbios_dictionary if "_" not in model and " " not in model and smbios_data.smbios_dictionary[model]["Board ID"] is not None]
|
||||
socketed_gpu_models = ["iMac9,1", "iMac10,1", "iMac11,1", "iMac11,2", "iMac11,3", "iMac12,1", "iMac12,2", "MacPro3,1", "MacPro4,1", "MacPro5,1", "Xserve2,1", "Xserve3,1"]
|
||||
socketed_imac_models = ["iMac9,1", "iMac10,1", "iMac11,1", "iMac11,2", "iMac11,3", "iMac12,1", "iMac12,2"]
|
||||
socketed_gpu_models = socketed_imac_models + ["MacPro3,1", "MacPro4,1", "MacPro5,1", "Xserve2,1", "Xserve3,1"]
|
||||
|
||||
settings = {
|
||||
"Build": {
|
||||
@@ -541,6 +542,7 @@ class SettingsFrame(wx.Frame):
|
||||
"Override detected/assumed GPU on",
|
||||
"socketed MXM-based iMacs.",
|
||||
],
|
||||
"condition": bool((not self.constants.custom_model and self.constants.computer.real_model in socketed_imac_models) or (self.constants.custom_model and self.constants.custom_model in socketed_imac_models))
|
||||
},
|
||||
"Populate Graphics Override": {
|
||||
"type": "populate",
|
||||
|
||||
Reference in New Issue
Block a user