From f8c05ce4aa8fd067d93d6b62b6cf13ec1cea71cb Mon Sep 17 00:00:00 2001 From: "AKA \"Thom Wiley" Date: Sun, 12 Sep 2021 09:30:03 -0400 Subject: [PATCH] Adding back_footer action to general_ui.sh for submenus When I first ran the code, I went to advanced because I had klipper already installed and I wanted to see if I could install fluidd using this code base. So when see advanced menu I was concerned that "quit" meant quitting the tool instead of exiting the advanced menu. So proposing a back_footer for sub menus that will revert back to main menu. Save quit footer for main menu to exit program. --- scripts/ui/general_ui.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/ui/general_ui.sh b/scripts/ui/general_ui.sh index f34d37a..a2d7d0b 100755 --- a/scripts/ui/general_ui.sh +++ b/scripts/ui/general_ui.sh @@ -21,6 +21,12 @@ quit_footer(){ bottom_border } +back_footer(){ + hr + echo -e "| ${green}B) Back${default} | " + bottom_border +} + print_header(){ top_border echo -e "| $(title_msg "~~~~~~~~~~~~~~~~~ [ KIAUH ] ~~~~~~~~~~~~~~~~~") |" @@ -60,4 +66,4 @@ deny_action(){ print_unkown_cmd print_msg && clear_msg $1 -} \ No newline at end of file +}