1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-08 15:34:20 +00:00

fix: P1/P2 issues in file ops, menu state, and logging

- Fix safe_sudo_remove early exit on error (P1)
- Fix menu filter state leakage in paginated menu (P2)
- Fix cleanup of MOLE_MENU_FILTER_NAMES in app selector (P2)
- Correct log_operation signature for memory dumps (P2)
- Apply minor formatting fixes to dev cleanup module
This commit is contained in:
tw93
2026-02-07 11:21:37 +08:00
parent 6f8f16ce48
commit 361d0dda05
5 changed files with 26 additions and 25 deletions

View File

@@ -179,7 +179,7 @@ clean_deep_system() {
if oplog_enabled && [[ "$total_size_kb" -gt 0 ]]; then
local size_human
size_human=$(bytes_to_human "$((total_size_kb * 1024))")
log_operation "[clean] REMOVED $mem_reports_dir ($file_count files, $size_human)"
log_operation "clean" "REMOVED" "$mem_reports_dir" "$file_count files, $size_human"
fi
else
log_info "[DRY-RUN] Would remove $file_count old memory exception reports ($total_size_kb KB)"