diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-13 16:37:26 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-06 22:48:39 +0200 |
commit | 73c124f646e1b9d35f265706b4e746d682bdad4d (patch) | |
tree | 845831c2dfb28100146a8c24d9bc67d686a329db | |
parent | df211fdd68501e943c8616347c69aa427613a07b (diff) | |
download | kube-73c124f646e1b9d35f265706b4e746d682bdad4d.tar.gz kube-73c124f646e1b9d35f265706b4e746d682bdad4d.zip |
At first the factory is not loaded so we need to set the properties once
they are loaded.
-rw-r--r-- | components/package/contents/ui/Settings.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/package/contents/ui/Settings.qml b/components/package/contents/ui/Settings.qml index 897942d8..8e80ba0f 100644 --- a/components/package/contents/ui/Settings.qml +++ b/components/package/contents/ui/Settings.qml | |||
@@ -110,6 +110,14 @@ Rectangle { | |||
110 | KubeFramework.AccountFactory { | 110 | KubeFramework.AccountFactory { |
111 | id: accountFactory | 111 | id: accountFactory |
112 | accountId: model.accountId | 112 | accountId: model.accountId |
113 | onAccountLoaded: { | ||
114 | if (listView.currentIndex == model.index) { | ||
115 | accountDetails.source = accountFactory.uiPath | ||
116 | accountDetails.item.accountId = accountFactory.accountId | ||
117 | accountDetails.item.icon = accountFactory.icon | ||
118 | accountDetails.item.accountNam = accountFactory.name | ||
119 | } | ||
120 | } | ||
113 | } | 121 | } |
114 | 122 | ||
115 | Kirigami.Icon { | 123 | Kirigami.Icon { |