Download buttons are now disabled when another plugin is being downloaded

CURA-3856
This commit is contained in:
Jaime van Kessel 2017-06-23 12:42:39 +02:00
parent 051ce5e9f4
commit a4e353c830
2 changed files with 18 additions and 4 deletions

View file

@ -8,7 +8,7 @@ UM.Dialog
{
id: base
title: "YAY"
title: "Find & Update plugins"
width: 450
height: 150
ScrollView
@ -63,10 +63,10 @@ UM.Dialog
}
Button
{
text: enabled ? "Download" : "Already Installed"
text: !model.already_installed ? "Download" : "Already Installed"
onClicked: manager.downloadAndInstallPlugin(model.file_location)
anchors.right: parent.right
enabled: !model.already_installed
enabled: !model.already_installed && !manager.isDownloading
}
}