mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Code style: Brackets on new line
As per our code style regulation. Contributes to issue CURA-5296.
This commit is contained in:
parent
4a816d5cd2
commit
310aee07ac
2 changed files with 10 additions and 5 deletions
|
@ -59,14 +59,17 @@ Item
|
||||||
id: installButton
|
id: installButton
|
||||||
active: toolbox.isDownloading && toolbox.activePackage == model
|
active: toolbox.isDownloading && toolbox.activePackage == model
|
||||||
complete: tile.installed
|
complete: tile.installed
|
||||||
readyAction: function() {
|
readyAction: function()
|
||||||
|
{
|
||||||
toolbox.activePackage = model
|
toolbox.activePackage = model
|
||||||
toolbox.startDownload(model.download_url)
|
toolbox.startDownload(model.download_url)
|
||||||
}
|
}
|
||||||
activeAction: function() {
|
activeAction: function()
|
||||||
|
{
|
||||||
toolbox.cancelDownload()
|
toolbox.cancelDownload()
|
||||||
}
|
}
|
||||||
completeAction: function() {
|
completeAction: function()
|
||||||
|
{
|
||||||
toolbox.viewCategory = "installed"
|
toolbox.viewCategory = "installed"
|
||||||
}
|
}
|
||||||
// Don't allow installing while another download is running
|
// Don't allow installing while another download is running
|
||||||
|
|
|
@ -18,11 +18,13 @@ Column
|
||||||
readyLabel: catalog.i18nc("@action:button", "Update")
|
readyLabel: catalog.i18nc("@action:button", "Update")
|
||||||
activeLabel: catalog.i18nc("@action:button", "Updating")
|
activeLabel: catalog.i18nc("@action:button", "Updating")
|
||||||
completeLabel: catalog.i18nc("@action:button", "Updated")
|
completeLabel: catalog.i18nc("@action:button", "Updated")
|
||||||
readyAction: function() {
|
readyAction: function()
|
||||||
|
{
|
||||||
toolbox.activePackage = model
|
toolbox.activePackage = model
|
||||||
toolbox.update(model.id)
|
toolbox.update(model.id)
|
||||||
}
|
}
|
||||||
activeAction: function() {
|
activeAction: function()
|
||||||
|
{
|
||||||
toolbox.cancelDownload()
|
toolbox.cancelDownload()
|
||||||
}
|
}
|
||||||
// Don't allow installing while another download is running
|
// Don't allow installing while another download is running
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue