fix: appimage freezes on login

Fixes #4189
This commit is contained in:
Richard Ramos 2021-11-27 13:29:37 -04:00
parent 4d7d2261aa
commit 94d67717c8
2 changed files with 4 additions and 34 deletions

View File

@ -76,37 +76,6 @@ Item {
} }
} }
RowLayout {
Layout.fillWidth: true
StatusBaseText {
color: Theme.palette.primaryColor1
text: qsTr("Active Mailserver")
Layout.rightMargin: Style.current.padding
Layout.leftMargin: Style.current.padding
Layout.fillWidth: true
font.weight: Font.Medium
font.pixelSize: 20
}
StatusBaseText {
id: activeMailserverTxt
color: Theme.palette.directColor1
text: "..."
Layout.rightMargin: Style.current.padding
Layout.leftMargin: Style.current.padding
Layout.fillWidth: true
wrapMode: Text.Wrap
font.weight: Font.Medium
font.pixelSize: 14
}
}
Connections {
target: root.store.profileModelInst.mailservers
onActiveMailserverChanged: (activeMailserver) => {
activeMailserverTxt.text = root.store.getMailserverName(activeMailserver) + "\n" + activeMailserver
}
}
ColumnLayout { ColumnLayout {
id: mailserverLogsContainer id: mailserverLogsContainer
height: 300 height: 300

View File

@ -20,8 +20,9 @@ Item {
Connections { Connections {
target: root.store.mailservers target: root.store.mailservers
onActiveMailserverChanged: (activeMailserver) => { onActiveMailserverChanged: function(activeMailserverName){
root.activeMailserver = root.store.getMailserverName(activeMailserver) var mName = root.store.getMailserverName(activeMailserverName)
root.activeMailserver = mName
} }
} }
@ -174,7 +175,7 @@ Item {
StatusBaseText { StatusBaseText {
//% "..." //% "..."
text: qsTr("Active mailserver: %1").arg(activeMailserver) || qsTrId("---") text: qsTr("Active mailserver: %1").arg(activeMailserver || qsTrId("---"))
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 24 anchors.leftMargin: 24
anchors.top: switchLbl.bottom anchors.top: switchLbl.bottom