on xenial help sign in
Merged mzanetti edit
4993aefAndrea Cimitan
Shell.qml+6−1
@@ -119,7 +119,6 @@ FocusScope {
119 GSettings {
119 GSettings {
120 id: backgroundSettings
120 id: backgroundSettings
121 schema.id: "org.gnome.desktop.background"
121 schema.id: "org.gnome.desktop.background"
122−
123 }
122 }
124 property url gSettingsPicture: backgroundSettings.pictureUri.length > 0 ? backgroundSettings.pictureUri : shell.defaultBackground
123 property url gSettingsPicture: backgroundSettings.pictureUri.length > 0 ? backgroundSettings.pictureUri : shell.defaultBackground
125 onGSettingsPictureChanged: {
124 onGSettingsPictureChanged: {
@@ -128,6 +127,12 @@ FocusScope {
128
127
129 // This is a dummy image that is needed to determine if the picture url
128 // This is a dummy image that is needed to determine if the picture url
130 // in backgroundSettings points to a valid picture file.
129 // 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.
131 Image {
136 Image {
132 source: shell.background
137 source: shell.background
133 height: 0
138 height: 0