summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-03 06:37:35 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-08 20:50:05 +0100
commite63257f0e96797aadfc6f8081b4795386c72c402 (patch)
tree2fd9a66930f4713edfeada5b13e33983b2ee69f0 /mobile-widgets
parent505ff4032a9c936c74880aa7046c515b51b285c6 (diff)
downloadsubsurface-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.qml5
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