From 8493269c6fc677092e6b70bfb29dd71b004b6e2c Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sun, 8 Jan 2023 11:05:14 +0100 Subject: [PATCH] refactor: hide currently still disabled functions from the menus Signed-off-by: Dominik Willner --- scripts/ui/install_menu.sh | 16 +++++++++------- scripts/ui/main_menu.sh | 3 ++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/scripts/ui/install_menu.sh b/scripts/ui/install_menu.sh index 78e4f03..3b31689 100755 --- a/scripts/ui/install_menu.sh +++ b/scripts/ui/install_menu.sh @@ -27,8 +27,10 @@ function install_ui() { echo -e "| 3) [Mainsail] | 8) [Telegram Bot] |" echo -e "| 4) [Fluidd] | 9) $(obico_install_title) |" echo -e "| | |" - echo -e "| Touchscreen GUI: | Webcam Streamer: |" - echo -e "| 5) [KlipperScreen] | 10) [MJPG-Streamer] |" + echo -e "| Touchscreen GUI: | |" + echo -e "| 5) [KlipperScreen] | |" +# echo -e "| Touchscreen GUI: | Webcam Streamer: |" +# echo -e "| 5) [KlipperScreen] | 10) [MJPG-Streamer] |" back_footer } @@ -64,11 +66,11 @@ function install_menu() { do_action "telegram_bot_setup_dialog" "install_ui";; 9) do_action "moonraker_obico_setup_dialog" "install_ui";; - 10) - #do_action "install_mjpg-streamer" "install_ui";; - clear && print_header - print_error "Function currently disabled! Sorry!" - install_ui;; +# 10) +# do_action "install_mjpg-streamer" "install_ui";; +# clear && print_header +# print_error "Function currently disabled! Sorry!" +# install_ui;; B|b) clear; main_menu; break;; *) diff --git a/scripts/ui/main_menu.sh b/scripts/ui/main_menu.sh index 00e3989..263ba24 100755 --- a/scripts/ui/main_menu.sh +++ b/scripts/ui/main_menu.sh @@ -25,7 +25,8 @@ function main_ui() { echo -e "| 2) [Update] | Moonraker: $(print_status "moonraker")|" echo -e "| 3) [Remove] | |" echo -e "| 4) [Advanced] | Mainsail: $(print_status "mainsail")|" - echo -e "| 5) [Backup] | Fluidd: $(print_status "fluidd")|" +# echo -e "| 5) [Backup] | Fluidd: $(print_status "fluidd")|" + echo -e "| | Fluidd: $(print_status "fluidd")|" echo -e "| | KlipperScreen: $(print_status "klipperscreen")|" echo -e "| 6) [Settings] | Telegram Bot: $(print_status "telegram_bot")|" echo -e "| | Obico: $(print_status "moonraker_obico")|"