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:
		
							parent
							
								
									dbca3ddd80
								
							
						
					
					
						commit
						3d9fc07157
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue