From 3300a1d93fcae61a56de207dd211e293b59d1d2c Mon Sep 17 00:00:00 2001 From: openoms Date: Fri, 7 May 2021 15:44:00 +0100 Subject: [PATCH] menu formatting --- scripts/menu.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/menu.sh b/scripts/menu.sh index 116cd0a..c9f41ea 100755 --- a/scripts/menu.sh +++ b/scripts/menu.sh @@ -5,7 +5,7 @@ source /home/joinmarket/joinin.conf source /home/joinmarket/_functions.sh # BASIC MENU INFO -HEIGHT=20 +HEIGHT=22 WIDTH=57 CHOICE_HEIGHT=14 BACKTITLE="JoininBox GUI $currentJBtag network:$network IP:$localip" @@ -32,10 +32,11 @@ OPTIONS+=( TOOLS "Extra helper functions and services") if [ "${runningEnv}" != mynode ]; then OPTIONS+=(UPDATE "Update JoininBox or JoinMarket") + OPTIONS+=("" "") OPTIONS+=(SHUTDOWN "Switch off the computer") OPTIONS+=(RESTART "Restart the computer") - HEIGHT=$((HEIGHT+3)) - CHOICE_HEIGHT=$((CHOICE_HEIGHT+3)) + HEIGHT=$((HEIGHT+4)) + CHOICE_HEIGHT=$((CHOICE_HEIGHT+4)) fi if [ "${runningEnv}" = raspiblitz ]; then OPTIONS+=(BLITZ "Switch to the RaspiBlitz menu") @@ -131,7 +132,7 @@ case $CHOICE in sudo shutdown now fi fi;; - BLITZ + BLITZ) sudo su - admin;; *) clear