Update kext unchecking logic to exclude required kexts

This commit is contained in:
Hoang Hong Quan
2024-10-07 23:11:43 +07:00
parent d6423e77fc
commit 27cf10125b
+8 -1
View File
@@ -7,6 +7,13 @@ from Scripts import utils
import os
import shutil
try:
long
unicode
except NameError:
long = int
unicode = str
class KextMaestro:
def __init__(self):
self.utils = utils.Utils()
@@ -429,7 +436,7 @@ class KextMaestro:
for index in indices:
if index >= 0 and index < len(self.kexts):
kext = self.kexts[index]
if kext.checked:
if kext.checked and not kext.required:
self.uncheck_kext(index)
else:
self.check_kext(index, macos_version)