From 310aee07ac19cfd0695390e4ec69a791445c792a Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 16 May 2018 13:39:43 +0200 Subject: [PATCH] Code style: Brackets on new line As per our code style regulation. Contributes to issue CURA-5296. --- plugins/Toolbox/resources/qml/ToolboxDetailTile.qml | 9 ++++++--- .../resources/qml/ToolboxInstalledTileActions.qml | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/plugins/Toolbox/resources/qml/ToolboxDetailTile.qml b/plugins/Toolbox/resources/qml/ToolboxDetailTile.qml index 739dc4ccfe..da53fc94af 100644 --- a/plugins/Toolbox/resources/qml/ToolboxDetailTile.qml +++ b/plugins/Toolbox/resources/qml/ToolboxDetailTile.qml @@ -59,14 +59,17 @@ Item id: installButton active: toolbox.isDownloading && toolbox.activePackage == model complete: tile.installed - readyAction: function() { + readyAction: function() + { toolbox.activePackage = model toolbox.startDownload(model.download_url) } - activeAction: function() { + activeAction: function() + { toolbox.cancelDownload() } - completeAction: function() { + completeAction: function() + { toolbox.viewCategory = "installed" } // Don't allow installing while another download is running diff --git a/plugins/Toolbox/resources/qml/ToolboxInstalledTileActions.qml b/plugins/Toolbox/resources/qml/ToolboxInstalledTileActions.qml index 5bbed2351c..8bdec4da5f 100644 --- a/plugins/Toolbox/resources/qml/ToolboxInstalledTileActions.qml +++ b/plugins/Toolbox/resources/qml/ToolboxInstalledTileActions.qml @@ -18,11 +18,13 @@ Column readyLabel: catalog.i18nc("@action:button", "Update") activeLabel: catalog.i18nc("@action:button", "Updating") completeLabel: catalog.i18nc("@action:button", "Updated") - readyAction: function() { + readyAction: function() + { toolbox.activePackage = model toolbox.update(model.id) } - activeAction: function() { + activeAction: function() + { toolbox.cancelDownload() } // Don't allow installing while another download is running