From e63257f0e96797aadfc6f8081b4795386c72c402 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 3 Nov 2019 06:37:35 -0800 Subject: Mobile: allow message argument to showBusy function When called without arguments, no message is shown. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index fbaba37d5..c73de4667 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -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 -- cgit v1.2.3-70-g09d2