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:
jan Iversen 2019-11-11 18:50:39 +01:00 committed by Dirk Hohndel
parent 08db77333b
commit bd7357238f

View file

@ -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
}