Proposed UI back_footer instead of quit_footer

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.
This commit is contained in:
AKA "Thom Wiley
2021-09-12 09:21:18 -04:00
committed by GitHub
parent 14ef39b87c
commit dfe146c263

View File

@@ -18,7 +18,7 @@ advanced_ui(){
echo -e "| 6) [Get MCU ID] | | " echo -e "| 6) [Get MCU ID] | | "
echo -e "| | CustomPiOS: | " echo -e "| | CustomPiOS: | "
echo -e "| | 10) [Migration Helper] | " echo -e "| | 10) [Migration Helper] | "
quit_footer back_footer
} }
advanced_menu(){ advanced_menu(){
@@ -72,7 +72,7 @@ advanced_menu(){
do_action "setup_gcode_shell_command" "advanced_ui";; do_action "setup_gcode_shell_command" "advanced_ui";;
10) 10)
do_action "migration_menu";; do_action "migration_menu";;
Q|q) B|b)
clear; main_menu; break;; clear; main_menu; break;;
*) *)
deny_action "advanced_ui";; deny_action "advanced_ui";;
@@ -99,7 +99,7 @@ switch_ui(){
echo -e "| dmbutyugin: | " echo -e "| dmbutyugin: | "
echo -e "| 2) [--> scurve-shaping] | " echo -e "| 2) [--> scurve-shaping] | "
echo -e "| 3) [--> scurve-smoothing] | " echo -e "| 3) [--> scurve-smoothing] | "
quit_footer back_footer
} }
switch_menu(){ switch_menu(){
@@ -137,7 +137,7 @@ switch_menu(){
read_branch read_branch
print_msg && clear_msg print_msg && clear_msg
switch_ui;; switch_ui;;
Q|q) B|b)
clear; advanced_menu; break;; clear; advanced_menu; break;;
*) *)
deny_action "switch_ui";; deny_action "switch_ui";;
@@ -167,7 +167,7 @@ rollback_ui(){
hr hr
echo -e "| Commit last updated from: | " echo -e "| Commit last updated from: | "
echo -e "| $PREV_UI | " echo -e "| $PREV_UI | "
quit_footer back_footer
} }
############################################################# #############################################################
@@ -190,7 +190,7 @@ migration_ui(){
echo -e "| 1) [Migrate MainsailOS] | " echo -e "| 1) [Migrate MainsailOS] | "
echo -e "| 2) [Migrate FluiddPi] | " echo -e "| 2) [Migrate FluiddPi] | "
echo -e "| | " echo -e "| | "
quit_footer back_footer
} }
migration_menu(){ migration_menu(){
@@ -201,8 +201,8 @@ migration_menu(){
case "$action" in case "$action" in
1) migrate_custompios "mainsail"; migration_menu;; 1) migrate_custompios "mainsail"; migration_menu;;
2) migrate_custompios "fluiddpi"; migration_menu;; 2) migrate_custompios "fluiddpi"; migration_menu;;
Q|q) clear; advanced_menu; break;; B|b) clear; advanced_menu; break;;
*) print_unkown_cmd; migration_menu;; *) print_unkown_cmd; migration_menu;;
esac esac
done done
} }