diff options
Diffstat (limited to 'components/mail/contents')
-rw-r--r-- | components/mail/contents/ui/main.qml | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index d864f2fc..83bd85b2 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml | |||
@@ -74,7 +74,14 @@ ApplicationWindow { | |||
74 | height: parent.height | 74 | height: parent.height |
75 | text: "Settings" | 75 | text: "Settings" |
76 | onClicked: { | 76 | onClicked: { |
77 | settings.visible = true | 77 | settingsComponent.createObject(app) |
78 | } | ||
79 | Component { | ||
80 | id: settingsComponent | ||
81 | KubeComponents.Settings { | ||
82 | id: settings | ||
83 | anchors.fill: parent | ||
84 | } | ||
78 | } | 85 | } |
79 | } | 86 | } |
80 | 87 | ||
@@ -83,7 +90,7 @@ ApplicationWindow { | |||
83 | iconName: "mail-message-new" | 90 | iconName: "mail-message-new" |
84 | text: "Compose" | 91 | text: "Compose" |
85 | onClicked: { | 92 | onClicked: { |
86 | composer.visible = true | 93 | composerComponent.createObject(app) |
87 | } | 94 | } |
88 | } | 95 | } |
89 | 96 | ||
@@ -92,8 +99,15 @@ ApplicationWindow { | |||
92 | iconName: "mail-message-reply" | 99 | iconName: "mail-message-reply" |
93 | text: "Reply" | 100 | text: "Reply" |
94 | onClicked: { | 101 | onClicked: { |
102 | composerComponent.createObject(app) | ||
95 | composer.originalMessage = mailListView.currentMail | 103 | composer.originalMessage = mailListView.currentMail |
96 | composer.visible = true | 104 | } |
105 | } | ||
106 | Component { | ||
107 | id: composerComponent | ||
108 | KubeComponents.FocusComposer { | ||
109 | id: composer | ||
110 | anchors.fill: parent | ||
97 | } | 111 | } |
98 | } | 112 | } |
99 | 113 | ||
@@ -177,16 +191,5 @@ ApplicationWindow { | |||
177 | 191 | ||
178 | } | 192 | } |
179 | 193 | ||
180 | KubeComponents.Settings { | ||
181 | id: settings | ||
182 | |||
183 | anchors.fill: parent | ||
184 | } | ||
185 | |||
186 | KubeComponents.FocusComposer { | ||
187 | id: composer | ||
188 | |||
189 | anchors.fill: parent | ||
190 | } | ||
191 | } | 194 | } |
192 | 195 | ||