mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 03:37:48 -06:00
Disabled download button on pluginbrowser for plugins that are already installed
CURA-3856
This commit is contained in:
parent
d815c2afcf
commit
051ce5e9f4
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue