gui_main.py: Fix smbios_data parsing

This commit is contained in:
Mykola Grymalyuk
2023-04-27 07:28:36 -06:00
parent 88d6fc29f0
commit c668ac0004
2 changed files with 3 additions and 1 deletions

View File

@@ -11,6 +11,8 @@
- Restores USB 3.0 expansion card support on USB 1.1 machines such as MacPro5,1
- Resolve OpenCL rendering on Nvidia Web Drivers
- thanks [@jazzzny](https://github.com/Jazzzny)
- Resolve UI unable to download macOS installers on unknown models
- ex. M2 Macs and Hackintoshes
- Increment Binaries:
- PatcherSupportPkg 0.9.6 - release
- Build Server Changes:

View File

@@ -1782,7 +1782,7 @@ class wx_python_gui:
if model in ["MacPro3,1", "MacPro4,1", "MacPro5,1"]:
has_legacy_usb = True
issues_list = "- Lack of Keyboard/Mouse in macOS installer without a USB hub\n"
elif model in smbios_data.smbios_dictionary[model]:
elif model in smbios_data.smbios_dictionary:
if "CPU Generation" in smbios_data.smbios_dictionary[model]:
if smbios_data.smbios_dictionary[model]["CPU Generation"] <= cpu_data.cpu_data.penryn:
has_legacy_usb = True