on xenial help sign in
Merged mzanetti edit
commit4993aef1bb7cf997dd3fa71680c9a9865f43af81 authorAndrea Cimitan <andrea.cimitan@canonical.com> dateTue 13 Aug 2013, 16:41 (13 years ago) parenta97561042e483c
1 file changed+6−1
Shell.qml+6−1
Shell.qml+6−1
@@ -119,7 +119,6 @@ FocusScope {
119119 GSettings {
120120 id: backgroundSettings
121121 schema.id: "org.gnome.desktop.background"
122−
123122 }
124123 property url gSettingsPicture: backgroundSettings.pictureUri.length > 0 ? backgroundSettings.pictureUri : shell.defaultBackground
125124 onGSettingsPictureChanged: {
@@ -128,6 +127,12 @@ FocusScope {
128127
129128 // This is a dummy image that is needed to determine if the picture url
130129 // in backgroundSettings points to a valid picture file.
130+ // We can't do this with the real background image because setting a
131+ // new source in onStatusChanged triggers a binding loop detection
132+ // inside Image, which causes it not to render even though a valid source
133+ // would be set. We don't mind about this image staying black and just
134+ // use it for verification to populate the source for the real
135+ // background image.
131136 Image {
132137 source: shell.background
133138 height: 0