mirror of
https://github.com/tw93/Mole.git
synced 2026-02-06 21:15:37 +00:00
feat(clean, optimize): enhance recent items cleanup safety
This commit is contained in:
@@ -258,6 +258,7 @@ select_purge_categories() {
|
||||
fi
|
||||
}
|
||||
|
||||
# shellcheck disable=SC2329
|
||||
handle_interrupt() {
|
||||
restore_terminal
|
||||
exit 130
|
||||
|
||||
@@ -76,6 +76,8 @@ clean_finder_metadata() {
|
||||
|
||||
# Clean macOS system caches
|
||||
clean_macos_system_caches() {
|
||||
# Clean saved application states with protection for System Settings
|
||||
# Note: safe_clean already calls should_protect_path for each file
|
||||
safe_clean ~/Library/Saved\ Application\ State/* "Saved application states"
|
||||
|
||||
# REMOVED: Spotlight cache cleanup can cause system UI issues
|
||||
|
||||
Reference in New Issue
Block a user