summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-13 16:37:26 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-06-06 22:48:39 +0200
commit73c124f646e1b9d35f265706b4e746d682bdad4d (patch)
tree845831c2dfb28100146a8c24d9bc67d686a329db
parentdf211fdd68501e943c8616347c69aa427613a07b (diff)
downloadkube-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.qml8
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 {