Browse Source

Disabled download button on pluginbrowser for plugins that are already installed

CURA-3856
Jaime van Kessel 7 years ago
parent
commit
051ce5e9f4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      plugins/PluginBrowser/PluginBrowser.qml

+ 3 - 1
plugins/PluginBrowser/PluginBrowser.qml

@@ -36,6 +36,7 @@ UM.Dialog
         height: 20
         value: manager.downloadProgress
     }
+
     Item
     {
         SystemPalette { id: palette }
@@ -62,9 +63,10 @@ UM.Dialog
                 }
                 Button
                 {
-                    text: "Download"
+                    text: enabled ? "Download" : "Already Installed"
                     onClicked: manager.downloadAndInstallPlugin(model.file_location)
                     anchors.right: parent.right
+                    enabled: !model.already_installed
                 }
             }