allow to return to both menus from show menu

This commit is contained in:
Rasmus Steinke 2015-07-17 18:18:46 +02:00
parent 5f8deed989
commit 218e495cd4

View File

@ -152,8 +152,9 @@ manageMenu() {
} }
showEntry () { showEntry () {
menu=$(echo -e "0 Return to Manage Menu\n---\n$(pass "$selected_password")" | rofi -dmenu -p "> ") menu=$(echo -e "0 Return to Main Menu\n0 Return to Manage Menu\n---\n$(pass "$selected_password")" | rofi -dmenu -p "> ")
if [[ $menu == "0 Return to Manage Menu" ]]; then manageMenu if [[ $menu == "0 Return to Manage Menu" ]]; then manageMenu
elif [[ $menu == "0 Return to Main Menu" ]]; then mainMenu
elif [[ $menu == "" ]]; then exit elif [[ $menu == "" ]]; then exit
else else
showEntry showEntry