Whoops, don't break support for color backgrounds
commitecd6f1e2d1b99b1796f81e94494b9246378e08d8
authorMichael Terry <michael.terry@canonical.com>
dateThu 1 Sep 2016, 16:20 (10 years ago)
parentb09af9b
qml/Shell.qml+1−1
@@ -156,7 +156,7 @@ StyledItem {
156156 // our default wallpaper). We use a name=wallpaper argument here to
157157 // make sure we don't litter our cache with lots of scaled images. We
158158 // only need to bother caching one at a time.
159− readonly property url cachedBackground: background ? "image://unity8imagecache/" + background + "?name=wallpaper" : ""
159+ readonly property url cachedBackground: background.toString().indexOf("file:///") === 0 ? "image://unity8imagecache/" + background + "?name=wallpaper" : background
160160
161161 GSettings {
162162 id: backgroundSettings