mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:05:56 +08:00
Disabled download button on pluginbrowser for plugins that are already installed
CURA-3856
This commit is contained in:
parent
d815c2afcf
commit
051ce5e9f4
@ -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…
x
Reference in New Issue
Block a user