fix: show disconnected/connected banner on load

This commit is contained in:
Richard Ramos 2020-07-24 10:33:17 -04:00 committed by Iuri Matias
parent e18188514a
commit 83d2e274ff
2 changed files with 6 additions and 3 deletions

View File

@ -32,9 +32,6 @@ include event_handling
include signal_handling
proc init*(self: ChatController) =
# Initial state is disconnected and will change as soon as there's a peer
self.view.setConnected(false)
self.handleMailserverEvents()
self.handleChatEvents()
self.status.mailservers.init()

View File

@ -62,6 +62,12 @@ StackLayout {
Layout.fillWidth: true
z: 60
Rectangle {
Component.onCompleted: {
if(!isConnected){
connectedStatusRect.visible = true
}
}
id: connectedStatusRect
Layout.fillWidth: true
height: 40;