1
0

qml: add loader overlay, avoid interacting with the to-be-unloaded wallet

This commit is contained in:
Sander van Grieken
2023-02-23 18:20:29 +01:00
parent a56c9687c8
commit 278486602b
3 changed files with 40 additions and 10 deletions

View File

@@ -171,6 +171,30 @@ ApplicationWindow
}
}
Pane {
id: walletLoadingPane
parent: Overlay.overlay
anchors.fill: parent
background: Rectangle { color: Material.dialogColor }
visible: Daemon.loading
ColumnLayout {
anchors.centerIn: parent
spacing: 2 * constants.paddingXLarge
Label {
Layout.alignment: Qt.AlignHCenter
text: qsTr('Opening wallet...')
font.pixelSize: constants.fontSizeXXLarge
}
BusyIndicator {
Layout.alignment: Qt.AlignHCenter
running: Daemon.loading
}
}
}
Timer {
id: coverTimer
interval: 10