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 <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
master
Stacy Harper 3 years ago committed by Anjandev Momi
parent dbca3ddd80
commit 3d9fc07157
  1. 2
      scripts/modem/sxmo_modemcall.sh

@ -237,7 +237,7 @@ incomingcallmenu() {
PICKED="$( PICKED="$(
printf %b "$icon_phn Pickup\n$icon_phx Hangup\n$icon_mut Mute\n" | printf %b "$icon_phn Pickup\n$icon_phx Hangup\n$icon_mut Mute\n" |
dmenu -c -l 5 -p "$CONTACTNAME" dmenu -c -l 5 -p "$CONTACTNAME"
)" )" || exit
if echo "$PICKED" | grep -q "Pickup"; then if echo "$PICKED" | grep -q "Pickup"; then
pickup "$1" pickup "$1"

Loading…
Cancel
Save