1
0
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:
Tw93
2025-12-18 17:19:18 +08:00
parent faf2c7b431
commit 8eeed7d079
10 changed files with 33 additions and 102 deletions

View File

@@ -258,6 +258,7 @@ select_purge_categories() {
fi
}
# shellcheck disable=SC2329
handle_interrupt() {
restore_terminal
exit 130

View File

@@ -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