1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 12:41:46 +00:00

Fix the setting panel cleaning issue

This commit is contained in:
Tw93
2025-12-18 15:20:26 +08:00
parent fccc589fbd
commit 456215f2ff
2 changed files with 7 additions and 1 deletions

View File

@@ -491,10 +491,16 @@ should_protect_path() {
# 1. Check for explicit critical system keywords in path (case-insensitive)
# Protect System Settings, Preferences, Control Center, and related XPC services
# Also protect "Settings" (used in macOS Sequoia) and savedState files
if [[ "$path_lower" =~ systemsettings || "$path_lower" =~ systempreferences || "$path_lower" =~ controlcenter ]]; then
return 0
fi
# Additional check for com.apple.Settings (macOS Sequoia System Settings)
if [[ "$path_lower" =~ com\.apple\.settings ]]; then
return 0
fi
# 2. Protect system-critical cache directories that cause UI corruption
# These caches are essential for modern macOS (Sonoma/Sequoia) system UI rendering
case "$path" in

2
mole
View File

@@ -22,7 +22,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/lib/core/common.sh"
# Version info
VERSION="1.13.8"
VERSION="1.13.9"
MOLE_TAGLINE="Deep clean and optimize your Mac."
# Check if Touch ID is already configured