From 5b5fa3905f91aa92be6147e919aaba4868b657bc Mon Sep 17 00:00:00 2001 From: szaimen Date: Sat, 19 Sep 2020 20:42:37 +0200 Subject: [PATCH] Don't show a cancel button for input_boxes (#1476) --- lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.sh b/lib.sh index a545ba41..2aa9224c 100644 --- a/lib.sh +++ b/lib.sh @@ -279,7 +279,7 @@ yesno_box_no() { input_box() { [ -n "$2" ] && local SUBTITLE=" - $2" - local RESULT && RESULT=$(whiptail --title "$TITLE$SUBTITLE" --inputbox "$1" "$WT_HEIGHT" "$WT_WIDTH" 3>&1 1>&2 2>&3) + local RESULT && RESULT=$(whiptail --title "$TITLE$SUBTITLE" --nocancel --inputbox "$1" "$WT_HEIGHT" "$WT_WIDTH" 3>&1 1>&2 2>&3) echo "$RESULT" }