diff options
Diffstat (limited to 'framework/qml/InlineAccountSwitcher.qml')
-rw-r--r-- | framework/qml/InlineAccountSwitcher.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/qml/InlineAccountSwitcher.qml b/framework/qml/InlineAccountSwitcher.qml index b7f69588..2af1a455 100644 --- a/framework/qml/InlineAccountSwitcher.qml +++ b/framework/qml/InlineAccountSwitcher.qml | |||
@@ -86,6 +86,18 @@ FocusScope { | |||
86 | 86 | ||
87 | accountId: currentData.accountId | 87 | accountId: currentData.accountId |
88 | visible: isCurrent | 88 | visible: isCurrent |
89 | onVisibleChanged: { | ||
90 | if (visible) { | ||
91 | selectRootIndex() | ||
92 | } | ||
93 | } | ||
94 | |||
95 | onActivated: { | ||
96 | if (visible) { | ||
97 | Kube.Fabric.postMessage(Kube.Messages.folderSelection, {"folder": model.data(index, Kube.FolderListModel.DomainObject), | ||
98 | "trash": model.data(index, Kube.FolderListModel.Trash)}); | ||
99 | } | ||
100 | } | ||
89 | } | 101 | } |
90 | } | 102 | } |
91 | } | 103 | } |