From f5e313a64ef9023eba6d725a6aa5cd13da54e0db Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 18 Sep 2017 13:13:26 +0200 Subject: Use currentFolder to synchronize the current folder --- components/kube/contents/ui/Kube.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'components') diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index a11d6e2f..86e0f5bb 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml @@ -47,8 +47,8 @@ Controls2.ApplicationWindow { property variant currentAccount onCurrentAccountChanged: { if (!!currentAccount) { - console.warn("Synching account", currentAccount) - Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": currentAccount}); + console.warn("Syncing account", currentAccount) + Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": currentAccount}) } } @@ -115,10 +115,8 @@ Controls2.ApplicationWindow { } Shortcut { id: syncShortcut - property variant folder: null sequence: StandardKey.Refresh - enabled: !!folder - onActivated: Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": folder}) + onActivated: !!app.currentFolder ? Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder}) : Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount}) } //END Shortcuts -- cgit v1.2.3