Mobile: allow message argument to showBusy function

When called without arguments, no message is shown.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-11-03 06:37:35 -08:00
parent 505ff4032a
commit e63257f0e9

View file

@ -66,7 +66,9 @@ Kirigami.ApplicationWindow {
anchors.centerIn: parent
}
function showBusy() {
function showBusy(msg = "") {
if (msg !== "")
showPassiveNotification(msg, 15000) // show for 15 seconds
busy.running = true
}
@ -77,6 +79,7 @@ Kirigami.ApplicationWindow {
function hideBusy() {
busy.running = false
showPassiveNotification("", 10) // this hides a notification messssage that's still shown
}
function hideBusyAndConnectModel() { // this is used by QMLManager when done filtering