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

Commit

Permalink
warn when no mobilegestalt file is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
leminlimez committed Dec 12, 2024
1 parent bb69a12 commit bf7902b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions devicemanagement/device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ def apply_changes(self, resetting: bool = False, update_label=lambda x: None):
else:
if gestalt_plist != None:
gestalt_plist = tweak.apply_tweak(gestalt_plist)
elif tweak.enabled:
# no mobilegestalt file provided but applying mga tweaks, give warning
show_error_msg("No mobilegestalt file provided! Please select your file to apply mobilegestalt tweaks.")
update_label("Failed.")
return
# set the custom gestalt keys
if gestalt_plist != None:
gestalt_plist = CustomGestaltTweaks.apply_tweaks(gestalt_plist)
Expand Down

0 comments on commit bf7902b

Please sign in to comment.