mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile-widget/qml: correct syntax error introduced in e63257f0e
default parameter values is not supported as this syntax was introduced in ECMA-262 6th edition while QML only implements the fifth edition (as of Qt 5.11). remove default parameter and check for undefined instead. Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
08db77333b
commit
bd7357238f
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ Kirigami.ApplicationWindow {
|
|||
anchors.centerIn: parent
|
||||
}
|
||||
|
||||
function showBusy(msg = "") {
|
||||
if (msg !== "")
|
||||
function showBusy(msg) {
|
||||
if (msg !== undefined)
|
||||
showPassiveNotification(msg, 15000) // show for 15 seconds
|
||||
busy.running = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue