quickshell: cache:false on wallpaper images (stale after soft reload)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
f98387c2a3
commit
34234ab9e9
1 changed files with 5 additions and 0 deletions
|
|
@ -262,6 +262,10 @@ in
|
|||
id: wall
|
||||
anchors.fill: parent
|
||||
source: "file://" + Quickshell.env("HOME") + "/.local/share/backgrounds/wallpaper.png"
|
||||
// cache:false — soft reload (qs ipc reload) keeps the process
|
||||
// alive, and the QML pixmap cache is keyed by URL, so a new
|
||||
// wallpaper behind the same path never shows without this.
|
||||
cache: false
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
visible: false
|
||||
}
|
||||
|
|
@ -539,6 +543,7 @@ in
|
|||
Image {
|
||||
anchors.fill: parent
|
||||
source: "file://" + Quickshell.env("HOME") + "/.local/share/backgrounds/wallpaper.png"
|
||||
cache: false // same-URL pixmap cache survives soft reload
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue