fix(AppMain): only show banner when disconnected

Closes #7416
This commit is contained in:
Alexandra Betouni 2022-10-04 19:38:52 +03:00 committed by Iuri Matias
parent 70e9c89465
commit 080bc44971
1 changed files with 3 additions and 2 deletions

View File

@ -602,7 +602,8 @@ Item {
id: connectedBannerComponent
ModuleWarning {
readonly property bool isConnected: bannersLayout.isConnected
id: connectedBanner
property bool isConnected: true
objectName: "connectionInfoBanner"
Layout.fillWidth: true
@ -617,7 +618,7 @@ Item {
}
Component.onCompleted: {
updateState()
connectedBanner.isConnected = Qt.binding(() => bannersLayout.isConnected);
}
onIsConnectedChanged: {
updateState();