Plugin browser now shows difference between new & upgradable plugins

CURA-3856
This commit is contained in:
Jaime van Kessel 2017-06-23 13:03:30 +02:00
parent b2a21f0443
commit 68663b2789
2 changed files with 15 additions and 7 deletions

View file

@ -59,14 +59,13 @@ UM.Dialog
text: model.name
width: contentWidth
}
}
Button
{
text: !model.already_installed ? "Download" : "Already Installed"
text: !model.already_installed ? "Download" : model.can_upgrade ? "Upgrade" : "Download"
onClicked: manager.downloadAndInstallPlugin(model.file_location)
anchors.right: parent.right
enabled: !model.already_installed && !manager.isDownloading
enabled: (!model.already_installed || model.can_upgrade) && !manager.isDownloading
}
}