diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 8092a073..b3bee859 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -63,18 +63,6 @@ Controls2.ApplicationWindow { | |||
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | //Controller | ||
67 | //TODO replace | ||
68 | Kube.FolderController { | ||
69 | id: folderController | ||
70 | } | ||
71 | Kube.Listener { | ||
72 | id: controllerListener | ||
73 | filter: Kube.Messages.folderSelection | ||
74 | onMessageReceived: { | ||
75 | folderController.folder = message.folder | ||
76 | } | ||
77 | } | ||
78 | 66 | ||
79 | //Model | 67 | //Model |
80 | Kube.AccountsModel { | 68 | Kube.AccountsModel { |
@@ -84,9 +72,17 @@ Controls2.ApplicationWindow { | |||
84 | 72 | ||
85 | //BEGIN Shortcuts | 73 | //BEGIN Shortcuts |
86 | Shortcut { | 74 | Shortcut { |
75 | id: syncShortcut | ||
76 | property variant folder: null | ||
87 | sequence: StandardKey.Refresh | 77 | sequence: StandardKey.Refresh |
88 | onActivated: folderController.synchronizeAction.execute() | 78 | enabled: !!folder |
89 | enabled: folderController.synchronizeAction.enabled | 79 | onActivated: Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": folder}) |
80 | } | ||
81 | Kube.Listener { | ||
82 | filter: Kube.Messages.folderSelection | ||
83 | onMessageReceived: { | ||
84 | syncShortcut.folder = message.folder | ||
85 | } | ||
90 | } | 86 | } |
91 | //END Shortcuts | 87 | //END Shortcuts |
92 | 88 | ||