Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
leminlimez authored Sep 3, 2024
2 parents edb8fed + 60b8c79 commit 00dd0b8
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions main_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@

gestalt_path = Path.joinpath(Path.cwd(), "com.apple.MobileGestalt.plist")

def print_option(num: int, active: bool, message: str):
txt = str(num) + ". "
if active:
txt = txt + "[Y] "
txt = txt + message
print(txt)

while running:
print("""\n\n\n\n
Expand All @@ -35,18 +42,18 @@
`--`-' `--`-'
""")
print("by LeminLimez")
print("v1.0\n\n")
print("v1.0.1\n\n")

if not passed_check and Path.exists(gestalt_path) and Path.is_file(gestalt_path):
passed_check = True

if passed_check:
print(f"1. {"[Y] " if dynamic_island_enabled else ""}Toggle Dynamic Island")
print(f"2. {"[Y] " if current_model_name != "" else ""}Set Device Model Name")
print(f"3. {"[Y] " if boot_chime_enabled else ""}Toggle Boot Chime")
print(f"4. {"[Y] " if charge_limit_enabled else ""}Toggle Charge Limit")
print(f"5. {"[Y] " if stage_manager_enabled else ""}Toggle Stage Manager Supported")
print(f"6. {"[Y] " if shutter_sound_enabled else ""}Toggle Shutter Sound")
print_option(1, dynamic_island_enabled, "Toggle Dynamic Island")
print_option(2, current_model_name != "", "Set Device Model Name")
print_option(3, boot_chime_enabled, "Toggle Boot Chime")
print_option(4, charge_limit_enabled, "Toggle Charge Limit")
print_option(5, stage_manager_enabled, "Toggle Stage Manager Supported")
print_option(6, shutter_sound_enabled, "Disable Region Restrictions (ie. Shutter Sound)")
print("\n9. Apply")
print("0. Exit\n")
page = int(input("Enter a number: "))
Expand Down

0 comments on commit 00dd0b8

Please sign in to comment.