fix(appmain): Fix multiple creations of mailservers-not-working popup
Closes: #5899
This commit is contained in:
parent
326147c549
commit
17cbd4512d
|
@ -640,10 +640,13 @@ Item {
|
|||
Connections {
|
||||
target: rootStore.mainModuleInst
|
||||
onMailserverNotWorking: {
|
||||
Global.openPopup(mailserverNotWorkingPopupComponent);
|
||||
if (!appLayout.mailserverNotWorkingPopup) {
|
||||
appLayout.mailserverNotWorkingPopup = Global.openPopup(mailserverNotWorkingPopupComponent);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // ColumnLayout
|
||||
property var mailserverNotWorkingPopup: null
|
||||
|
||||
Component {
|
||||
id: mailserverNotWorkingPopupComponent
|
||||
|
@ -652,6 +655,7 @@ Item {
|
|||
anchors.centerIn: parent
|
||||
header.title: qsTr("Can not connect to mailserver")
|
||||
onClosed: {
|
||||
appLayout.mailserverNotWorkingPopup = null
|
||||
destroy()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue