From bb94ad904af97e0b888d6283edb26b16f28e3dbc Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Tue, 15 May 2018 14:05:40 +0200 Subject: [PATCH] fix --- .../Toolbox/resources/qml/ToolboxInstalledTileActions.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/Toolbox/resources/qml/ToolboxInstalledTileActions.qml b/plugins/Toolbox/resources/qml/ToolboxInstalledTileActions.qml index 3a1b9ba3d9..5bbed2351c 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: { + readyAction: function() { toolbox.activePackage = model toolbox.update(model.id) } - activeAction: toolbox.cancelDownload() + activeAction: function() { + toolbox.cancelDownload() + } // Don't allow installing while another download is running enabled: !(toolbox.isDownloading && toolbox.activePackage != model) opacity: enabled ? 1.0 : 0.5