mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 01:38:00 +00:00
fix: show disconnected/connected banner on load
This commit is contained in:
parent
e18188514a
commit
83d2e274ff
@ -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()
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user