From cfe196b4af13206b56c977de522b866b34d90847 Mon Sep 17 00:00:00 2001 From: Steve Zabka <79079633+cryinkfly@users.noreply.github.com> Date: Thu, 21 Oct 2021 17:18:24 +0200 Subject: [PATCH] Update extensions-custom.sh --- .../resources/extensions/extensions-custom.sh | 89 ++++--------------- 1 file changed, 15 insertions(+), 74 deletions(-) diff --git a/files/scripts/stable-branch/data/resources/extensions/extensions-custom.sh b/files/scripts/stable-branch/data/resources/extensions/extensions-custom.sh index 3e166e0..292254d 100644 --- a/files/scripts/stable-branch/data/resources/extensions/extensions-custom.sh +++ b/files/scripts/stable-branch/data/resources/extensions/extensions-custom.sh @@ -15,56 +15,6 @@ # ALL FUNCTIONS & DIALOGS ARE ARRANGED HERE: # ############################################################################################################################################################### -# Install selected plugins! - -function install-extensions-custom { - -if [ "$plugin_1" = "1" ]; then - airfoil-tools-plugin-custom -else - echo "Airfoil Tools not selected." -fi - -if [ "$plugin_2" = "1" ]; then - additive-assistant-plugin-custom -else - echo "Additive Assistant (FFF) not selected." -fi - -if [ "$plugin_3" = "1" ]; then - czech-locale-plugin-custom -else - echo "Czech localization for F360 not selected." -fi - -if [ "$plugin_4" = "1" ]; then - hp-3dprinter-connector-plugin-custom -else - echo "HP 3D Printers for Autodesk® Fusion 360™ not selected." -fi - -if [ "$plugin_5" = "1" ]; then - octoprint-plugin-custom -else - echo "OctoPrint for Autodesk® Fusion 360™ not selected." -fi - -if [ "$plugin_6" = "1" ]; then - robodk-plugin-custom -else - echo "RoboDK not selected." -fi - -if [ "$reset" = "1" ]; then - manager-extensions-custom - install-extensions-custom -else - echo "Reset!" -fi -} - -############################################################################## - # Airfoil Tools function airfoil-tools-plugin-custom { @@ -140,40 +90,32 @@ function robodk-plugin-custom { function manager-extensions-custom { -plugin_1="0" -plugin_2="0" -plugin_3="0" -plugin_4="0" -plugin_5="0" -plugin_6="0" -reset="0" - response=$(zenity --list \ --checklist \ --title="$program_name" \ - --width=1000 \ + --width=900 \ --height=500 \ - --column="$text_select" --column="$text_extension" --column="$text_extension_description"\ - FALSE "Airfoil Tools" "$text_extension_description_1" \ - FALSE "Additive Assistant (FFF)" "$text_extension_description_2" \ - FALSE "Czech localization for F360" "$text_extension_description_3" \ - FALSE "HP 3D Printers for Autodesk® Fusion 360™" "$text_extension_description_4" \ - FALSE "OctoPrint for Autodesk® Fusion 360™" "$text_extension_description_5" \ - FALSE "RoboDK" "$text_extension_description_6" ) + --column="Select" --column="Extension" --column="Description"\ + FALSE "Airfoil Tools" "Description_1" \ + FALSE "Additive Assistant (FFF)" "Description_2" \ + FALSE "Czech localization for F360" "Description_3" \ + FALSE "HP 3D Printers for Autodesk® Fusion 360™" "Description_4" \ + FALSE "OctoPrint for Autodesk® Fusion 360™" "Description_5" \ + FALSE "RoboDK" "Description_6" ) -[[ $response = *"Airfoil Tools"* ]] && plugin_1="1" +[[ $response = *"Airfoil Tools"* ]] && airfoil-tools-plugin-custom -[[ $response = *"Additive Assistant (FFF)"* ]] && plugin_2="1" +[[ $response = *"Additive Assistant (FFF)"* ]] && additive-assistant-plugin-custom -[[ $response = *"Czech localization for F360"* ]] && plugin_3="1" +[[ $response = *"Czech localization for F360"* ]] && czech-locale-plugin-custom -[[ $response = *"HP 3D Printers for Autodesk® Fusion 360™"* ]] && plugin_4="1" +[[ $response = *"HP 3D Printers for Autodesk® Fusion 360™"* ]] && hp-3dprinter-connector-plugin-custom -[[ $response = *"OctoPrint for Autodesk® Fusion 360™"* ]] && plugin_5="1" +[[ $response = *"OctoPrint for Autodesk® Fusion 360™"* ]] && octoprint-plugin-custom -[[ $response = *"RoboDK"* ]] && plugin_6="1" +[[ $response = *"RoboDK"* ]] && robodk-plugin-custom -[[ "$response" ]] || reset="1" #manager-extensions-custom +[[ "$response" ]] || manager-extensions-custom } ############################################################################## @@ -181,4 +123,3 @@ reset="0" ############################################################################## manager-extensions-custom -install-extensions-custom