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
@ -66,8 +66,8 @@ Kirigami.ApplicationWindow {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
function showBusy(msg = "") {
|
function showBusy(msg) {
|
||||||
if (msg !== "")
|
if (msg !== undefined)
|
||||||
showPassiveNotification(msg, 15000) // show for 15 seconds
|
showPassiveNotification(msg, 15000) // show for 15 seconds
|
||||||
busy.running = true
|
busy.running = true
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user