on xenial help sign in
load defaultBackground if the setting is empty
309ebd3Michael Zanetti
Shell.qml+5−2
@@ -149,13 +149,16 @@ FocusScope {
149 id: backgroundImage
149 id: backgroundImage
150 objectName: "backgroundImage"
150 objectName: "backgroundImage"
151
151
152− property url gSettingsPicture: backgroundSettings.pictureUri
152+ property url gSettingsPicture: backgroundSettings.pictureUri.length > 0 ? backgroundSettings.pictureUri : defaultBackground
153
153
154 anchors.fill: parent
154 anchors.fill: parent
155
155
156− onGSettingsPictureChanged: source = gSettingsPicture
156+ onGSettingsPictureChanged: {
157+ source = gSettingsPicture
158+ }
157
159
158 onStatusChanged: {
160 onStatusChanged: {
161+ print("################################## image status changed", status, "(", Image.Error,"), source:", source)
159 if (status == Image.Error && source != defaultBackground) {
162 if (status == Image.Error && source != defaultBackground) {
160 source = defaultBackground
163 source = defaultBackground
161 }
164 }