mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue