mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Small code improvements
This commit is contained in:
parent
d30bbd48fb
commit
b7f26ddcc7
2 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue