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:
parent
505ff4032a
commit
e63257f0e9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user