mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-23 19:40:15 +10:00
gui_settings.py: Handle saving values of None
This commit is contained in:
@@ -430,6 +430,10 @@ class GenerateDefaults:
|
||||
continue
|
||||
|
||||
constants_key = key.replace("GUI:", "")
|
||||
|
||||
if plist[key] == "PYTHON_NONE_VALUE":
|
||||
plist[key] = None
|
||||
|
||||
if hasattr(self.constants, constants_key):
|
||||
logging.info(f"Setting {constants_key} to {plist[key]}")
|
||||
setattr(self.constants, constants_key, plist[key])
|
||||
Reference in New Issue
Block a user