Compare commits

...
2 Commits
Author SHA1 Message Date
ryujin 134110d8e2 Merge pull request 'Fix minui-presenter freeze by correcting --timeout values' (#2) from fix/presenter-timeout into main
CI & Pak Build / test (push) Successful in 47s
CI & Pak Build / build-pak (push) Failing after 2m37s
Reviewed-on: #2
2026-12-01 03:51:27 +00:00
ryujin a4ed74c6b3 Fix minui-presenter freeze by correcting --timeout values
CI & Pak Build / test (pull_request) Successful in 48s
CI & Pak Build / build-pak (pull_request) Failing after 2m36s
In minui-presenter, --timeout -1 disables all button input (intended for backgrounded loading screens), while --timeout 0 waits indefinitely for a button press (intended for interactive prompts).

- Use --timeout 0 in show_message() so Press A / B responds normally
- Use --timeout -1 in start_busy() so background status screens ignore stray input until killed
- Add EXIT/INT/TERM trap to ensure stop_busy cleans up any background presenter

Fixes #1
2026-11-30 22:41:55 -05:00
+4 -2
View File
@@ -54,7 +54,7 @@ show_message() {
--confirm-show \
--confirm-button A \
--confirm-text "$BTN" \
--timeout -1 >> "$LOG_FILE" 2>&1
--timeout 0 >> "$LOG_FILE" 2>&1
else
echo "$MSG" >> "$LOG_FILE"
fi
@@ -64,7 +64,7 @@ BUSY_PID=""
start_busy() {
stop_busy
if [ -n "$MINUI_PRESENTER" ]; then
"$MINUI_PRESENTER" --message "$1" --timeout 0 >> "$LOG_FILE" 2>&1 &
"$MINUI_PRESENTER" --message "$1" --timeout -1 >> "$LOG_FILE" 2>&1 &
BUSY_PID=$!
fi
}
@@ -77,6 +77,8 @@ stop_busy() {
fi
}
trap stop_busy EXIT INT TERM
# Runs minui-list using --write-location (reliable across all NextUI platforms)
pick_from_list() {
LIST_FILE="$1"