Small code improvements

This commit is contained in:
ChrisTerBeke 2018-05-15 13:28:33 +02:00
parent d30bbd48fb
commit b7f26ddcc7
2 changed files with 5 additions and 7 deletions

View file

@ -18,13 +18,11 @@ Column
readyLabel: catalog.i18nc("@action:button", "Update")
activeLabel: catalog.i18nc("@action:button", "Updating")
completeLabel: catalog.i18nc("@action:button", "Updated")
readyAction: function() {
readyAction: {
toolbox.activePackage = model
toolbox.update(model.id)
}
activeAction: function() {
toolbox.cancelDownload()
}
activeAction: toolbox.cancelDownload()
// Don't allow installing while another download is running
enabled: !(toolbox.isDownloading && toolbox.activePackage != model)
opacity: enabled ? 1.0 : 0.5