diff options
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 8 |
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 | ||