@@ -72,7 +72,7 @@ StyledItem {
7272 property bool supportsMultiColorLed: true
7373
7474 // Used by tests
75− property bool lightIndicators: false
75+ property alias lightIndicators: indicatorsModel.light
7676
7777 // to be read from outside
7878 readonly property int mainAppWindowOrientationAngle: stage.mainAppWindowOrientationAngle
@@ -535,6 +535,7 @@ StyledItem {
535535 && settings.enableIndicatorMenu
536536
537537 model: Indicators.IndicatorsModel {
538+ id: indicatorsModel
538539 // tablet and phone both use the same profile
539540 // FIXME: use just "phone" for greeter too, but first fix
540541 // greeter app launching to either load the app inside the
@@ -542,8 +543,9 @@ StyledItem {
542543 // involve taking the url-dispatcher dbus name and using
543544 // SessionBroadcast to tell the session.
544545 profile: shell.mode === "greeter" ? "desktop_greeter" : "phone"
545− light: root.lightIndicators
546− Component.onCompleted: load();
546+ Component.onCompleted: {
547+ load();
548+ }
547549 }
548550 }
549551