on xenial help sign in
load defaultBackground if the setting is empty
commit309ebd33f356d6ea607c79f2585c5c7b3e587eb9 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 12 Aug 2013, 16:42 (13 years ago) parent83fd0fa
1 file changed+5−2
Shell.qml+5−2
Shell.qml+5−2
@@ -149,13 +149,16 @@ FocusScope {
149149 id: backgroundImage
150150 objectName: "backgroundImage"
151151
152− property url gSettingsPicture: backgroundSettings.pictureUri
152+ property url gSettingsPicture: backgroundSettings.pictureUri.length > 0 ? backgroundSettings.pictureUri : defaultBackground
153153
154154 anchors.fill: parent
155155
156− onGSettingsPictureChanged: source = gSettingsPicture
156+ onGSettingsPictureChanged: {
157+ source = gSettingsPicture
158+ }
157159
158160 onStatusChanged: {
161+ print("################################## image status changed", status, "(", Image.Error,"), source:", source)
159162 if (status == Image.Error && source != defaultBackground) {
160163 source = defaultBackground
161164 }