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>
This commit is contained in:
Stacy Harper 2021-06-30 09:48:04 +02:00 committed by Anjandev Momi
parent dbca3ddd80
commit 3d9fc07157

View file

@ -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"