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 {
id: mailserverLogsContainer
height: 300

View File

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