sys_patch_auto.py: Avoid prompting config changes on hackintoshes

This commit is contained in:
Mykola Grymalyuk
2022-05-30 11:29:27 -06:00
parent c1258ac50d
commit 4fe9679660

View File

@@ -115,6 +115,8 @@ class AutomaticSysPatch:
should_notify = global_settings.global_settings().read_property("AutoPatch_Notify_Mismatched_Disks")
if should_notify is False:
print("- Skipping due to user preference")
elif settings.host_is_hackintosh is True:
print("- Skipping due to hackintosh")
else:
if settings.booted_oc_disk:
root_disk = settings.booted_oc_disk.strip("disk")