From 3d9fc071578cd73ad20fbd36bf1fc6cda3a9361e Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Wed, 30 Jun 2021 09:48:04 +0200 Subject: [PATCH] Prevent the incomingcallmenu to go futher if the menu failed This can happen if an call come while a menu already is open of if the user kill the dmenu with a top side gesture. We dont want the notification to be purged to allow the user to manually open it with the notification appmenu so we have to stop the code here. Signed-off-by: Stacy Harper Signed-off-by: Anjandev Momi --- scripts/modem/sxmo_modemcall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemcall.sh b/scripts/modem/sxmo_modemcall.sh index fb43b01..d3c76fd 100755 --- a/scripts/modem/sxmo_modemcall.sh +++ b/scripts/modem/sxmo_modemcall.sh @@ -237,7 +237,7 @@ incomingcallmenu() { PICKED="$( printf %b "$icon_phn Pickup\n$icon_phx Hangup\n$icon_mut Mute\n" | dmenu -c -l 5 -p "$CONTACTNAME" - )" + )" || exit if echo "$PICKED" | grep -q "Pickup"; then pickup "$1"