From 64712f59781b7d1029773b6f555f74c964129040 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 6 Jul 2022 00:10:59 +0200 Subject: [PATCH] gui: Treat dialog exit code 255 just like 1. Dialog exits with code 255 if escape was pressed. This change makes the escape key more useful in the main menu invoked via _browse() since it no longer terminates the program but results to show the parent menu. --- gui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui b/gui index 4297564..e9eb1a8 100644 --- a/gui +++ b/gui @@ -30,7 +30,7 @@ _set_dialog_ret() case "$ec" in 0) ret=$GSU_SUCCESS;; - 1) ret=1;; # cancelled + 1|255) ret=1;; # cancelled *) result="dialog exit code $ec" ret=-$E_GSU_DIALOG -- 2.39.2