on xenial help sign in
Still binding loop
commit83fd0fabbe68b73d582a4b39ed74be7249cc1f76 authorAndrea Cimitan <andrea.cimitan@canonical.com> dateMon 12 Aug 2013, 15:19 (13 years ago) parent9f951d6
1 file changed+5−3
Shell.qml+5−3
Shell.qml+5−3
@@ -43,7 +43,7 @@ FocusScope {
4343
4444 property real edgeSize: units.gu(2)
4545 property url defaultBackground: shell.width >= units.gu(60) ? "graphics/tablet_background.jpg" : "graphics/phone_background.jpg"
46− property url background: backgroundSettings.pictureUri
46+ property url background: backgroundImage.source
4747 readonly property real panelHeight: panel.panelHeight
4848
4949 property bool dashShown: dash.shown
@@ -119,8 +119,6 @@ FocusScope {
119119 GSettings {
120120 id: backgroundSettings
121121 schema.id: "org.gnome.desktop.background"
122−
123− onPictureUriChanged: backgroundImage.source = pictureUri
124122 }
125123
126124 VolumeControl {
@@ -151,8 +149,12 @@ FocusScope {
151149 id: backgroundImage
152150 objectName: "backgroundImage"
153151
152+ property url gSettingsPicture: backgroundSettings.pictureUri
153+
154154 anchors.fill: parent
155155
156+ onGSettingsPictureChanged: source = gSettingsPicture
157+
156158 onStatusChanged: {
157159 if (status == Image.Error && source != defaultBackground) {
158160 source = defaultBackground