QML UI: add busy indicator to the main window

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-10-20 11:54:47 -04:00
parent 8d01d421d4
commit 09507416c8

View file

@ -55,8 +55,20 @@ Kirigami.ApplicationWindow {
}
visible: false
// TODO: Verify where the opacity went to.
// opacity: 0
BusyIndicator {
id: busy
running: false
anchors.fill: parent
anchors.margins: Kirigami.Units.gridUnit
}
function showBusy() {
busy.running = true
}
function hideBusy() {
busy.running = false
}
function returnTopPage() {
for (var i=pageStack.depth; i>1; i--) {