Disabled download button on pluginbrowser for plugins that are already installed

CURA-3856
This commit is contained in:
Jaime van Kessel 2017-06-23 11:51:00 +02:00
parent d815c2afcf
commit 051ce5e9f4

View file

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