Add configuration option for users

This commit is contained in:
Mykola Grymalyuk
2021-08-10 10:06:45 -06:00
parent cf884532d7
commit fc59cfffa1
5 changed files with 32 additions and 2 deletions

View File

@@ -591,4 +591,28 @@ Note: for the average user, we recommend using dosdude1's legacy patcher:
elif change_menu in {"n", "N", "no", "No"}:
self.constants.moj_cat_accel = False
else:
print("Invalid option")
print("Invalid option")
def disable_thunderbolt(self):
Utilities.cls()
Utilities.header(["Disable Thunderbolt on 2013-14 MacBook Pros"])
print(
"""
Some 2013-14 MacBook Pro's have issues with the built-in thunderbolt,
resulting in kernel panics and random shutdowns.
To alliviate, you can disable the thunderbolt controller on MacBookPro11,x
machines with this option.
Note: This option only works on MacBookPro11,x, file an issue if you know of
other devices that benefit from this fix.
"""
)
change_menu = input("Disable Thunderbolt?(y/n): ")
if change_menu in {"y", "Y", "yes", "Yes"}:
self.constants.disable_thunderbolt = True
elif change_menu in {"n", "N", "no", "No"}:
self.constants.disable_thunderbolt = False
else:
print("Invalid option")