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

Uninstallation experience enhancement

This commit is contained in:
Tw93
2025-11-20 15:15:33 +08:00
parent ab3f8cc129
commit 3ddf2dd3b9
5 changed files with 87 additions and 75 deletions

View File

@@ -381,8 +381,11 @@ load_applications() {
apps_data=()
selection_state=()
# Read apps into array
# Read apps into array, skip non-existent apps
while IFS='|' read -r epoch app_path app_name bundle_id size last_used size_kb; do
# Skip if app path no longer exists
[[ ! -e "$app_path" ]] && continue
apps_data+=("$epoch|$app_path|$app_name|$bundle_id|$size|$last_used|${size_kb:-0}")
selection_state+=(false)
done < "$apps_file"