diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-11-03 06:37:35 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-08 20:50:05 +0100 |
commit | e63257f0e96797aadfc6f8081b4795386c72c402 (patch) | |
tree | 2fd9a66930f4713edfeada5b13e33983b2ee69f0 /mobile-widgets | |
parent | 505ff4032a9c936c74880aa7046c515b51b285c6 (diff) | |
download | subsurface-e63257f0e96797aadfc6f8081b4795386c72c402.tar.gz |
Mobile: allow message argument to showBusy function
When called without arguments, no message is shown.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/main.qml | 5 |
1 files changed, 4 insertions, 1 deletions
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 |