CURA-5135 Easy version

This is the easy fix. When a plugin is downloading, the other plugins' download buttons are not possible to be clicked. This avoids having to write any new logic. It does detract a bit from the user experience though.

The complicated version requires re-writing a big part of the plugin browser code to enable the queueing of downloads and stuff. That's sort of how it "should" be but is a lot more work.
This commit is contained in:
Ian Paschal 2018-03-23 11:10:21 +01:00
parent 749846e09c
commit e8491b4a83

View file

@ -129,6 +129,28 @@ Component {
return catalog.i18nc("@action:button", "Install");
}
}
enabled:
{
if ( manager.isDownloading )
{
return pluginList.activePlugin == model ? true : false
}
else
{
return true
}
}
opacity:
{
if ( pluginList.activePlugin == model )
{
return 1.0
}
else
{
manager.isDownloading ? 0.5 : 1.0
}
}
visible: model.external && ((model.status !== "installed") || model.can_upgrade)
style: ButtonStyle {
background: Rectangle {