GUI: Add conditional to Graphics override

This commit is contained in:
Mykola Grymalyuk
2023-05-22 12:31:33 -06:00
parent 1e86681d3c
commit 4c9c7965b6

View File

@@ -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",