summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-18 13:13:26 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-18 13:13:26 +0200
commitf5e313a64ef9023eba6d725a6aa5cd13da54e0db (patch)
tree5edd89b35ebd5d0679ad3ec2af74a412191b041b
parent20d2446ed1f6690d37489be4c0ca4d75f2c24a4b (diff)
downloadkube-f5e313a64ef9023eba6d725a6aa5cd13da54e0db.tar.gz
kube-f5e313a64ef9023eba6d725a6aa5cd13da54e0db.zip
Use currentFolder to synchronize the current folder
-rw-r--r--components/kube/contents/ui/Kube.qml8
1 files changed, 3 insertions, 5 deletions
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 {
47 property variant currentAccount 47 property variant currentAccount
48 onCurrentAccountChanged: { 48 onCurrentAccountChanged: {
49 if (!!currentAccount) { 49 if (!!currentAccount) {
50 console.warn("Synching account", currentAccount) 50 console.warn("Syncing account", currentAccount)
51 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": currentAccount}); 51 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": currentAccount})
52 } 52 }
53 } 53 }
54 54
@@ -115,10 +115,8 @@ Controls2.ApplicationWindow {
115 } 115 }
116 Shortcut { 116 Shortcut {
117 id: syncShortcut 117 id: syncShortcut
118 property variant folder: null
119 sequence: StandardKey.Refresh 118 sequence: StandardKey.Refresh
120 enabled: !!folder 119 onActivated: !!app.currentFolder ? Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder}) : Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount})
121 onActivated: Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": folder})
122 } 120 }
123 //END Shortcuts 121 //END Shortcuts
124 122