mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 19:50:15 +00:00
Fix the setting panel cleaning issue
This commit is contained in:
@@ -491,10 +491,16 @@ should_protect_path() {
|
|||||||
|
|
||||||
# 1. Check for explicit critical system keywords in path (case-insensitive)
|
# 1. Check for explicit critical system keywords in path (case-insensitive)
|
||||||
# Protect System Settings, Preferences, Control Center, and related XPC services
|
# 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
|
if [[ "$path_lower" =~ systemsettings || "$path_lower" =~ systempreferences || "$path_lower" =~ controlcenter ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
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
|
# 2. Protect system-critical cache directories that cause UI corruption
|
||||||
# These caches are essential for modern macOS (Sonoma/Sequoia) system UI rendering
|
# These caches are essential for modern macOS (Sonoma/Sequoia) system UI rendering
|
||||||
case "$path" in
|
case "$path" in
|
||||||
|
|||||||
2
mole
2
mole
@@ -22,7 +22,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
source "$SCRIPT_DIR/lib/core/common.sh"
|
source "$SCRIPT_DIR/lib/core/common.sh"
|
||||||
|
|
||||||
# Version info
|
# Version info
|
||||||
VERSION="1.13.8"
|
VERSION="1.13.9"
|
||||||
MOLE_TAGLINE="Deep clean and optimize your Mac."
|
MOLE_TAGLINE="Deep clean and optimize your Mac."
|
||||||
|
|
||||||
# Check if Touch ID is already configured
|
# Check if Touch ID is already configured
|
||||||
|
|||||||
Reference in New Issue
Block a user