1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-06 13:42:57 +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

@@ -354,7 +354,6 @@ scan_applications() {
fi
}
# Load applications into arrays
load_applications() {
local apps_file="$1"
@@ -403,9 +402,7 @@ cleanup() {
# Set trap for cleanup on exit
trap cleanup EXIT INT TERM
# Main function
main() {
# Parse args
local force_rescan=false
for arg in "$@"; do
case "$arg" in