don't clear when exiting dialog

This commit is contained in:
openoms 2020-07-16 15:08:13 +01:00
parent 451a7280b3
commit 014efbdb04
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65

View file

@ -7,14 +7,12 @@ openMenuIfCancelled() {
pressed=$1
case $pressed in
1)
clear
echo "Cancelled"
echo "Returning to the menu..."
sleep 1
/home/joinmarket/menu.sh
exit 1;;
255)
clear
echo "ESC pressed."
echo "Returning to the menu..."
sleep 1
@ -59,7 +57,7 @@ esac
# chooseWallet
chooseWallet() {
wallet=$(tempfile 2>/dev/null)
dialog --backtitle "Choose a wallet" \
dialog --backtitle "Choose a wallet by typing the full name of the file" \
--title "Choose a wallet by typing the full name of the file" \
--fselect "$walletPath" 10 60 2> $wallet
openMenuIfCancelled $?