summaryrefslogtreecommitdiff
path: root/components/images/CachingImage.qml
diff options
context:
space:
mode:
authorSoramane <61896496+soramanew@users.noreply.github.com>2025-08-29 23:37:50 +1000
committerSoramane <61896496+soramanew@users.noreply.github.com>2025-08-29 23:37:50 +1000
commit4a6fc3c49c1b803bbd8669ca1c8cef717038b3fa (patch)
tree2c338a6f7285f9d082ecd0f1191e21c2effcdbe9 /components/images/CachingImage.qml
parentcmake: better modules enable/disable (diff)
downloadcaelestia-shell-4a6fc3c49c1b803bbd8669ca1c8cef717038b3fa.tar.gz
caelestia-shell-4a6fc3c49c1b803bbd8669ca1c8cef717038b3fa.tar.bz2
caelestia-shell-4a6fc3c49c1b803bbd8669ca1c8cef717038b3fa.zip
plugin/cim: update on size change
Diffstat (limited to 'components/images/CachingImage.qml')
-rw-r--r--components/images/CachingImage.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/images/CachingImage.qml b/components/images/CachingImage.qml
index 07b98b6..2aa0558 100644
--- a/components/images/CachingImage.qml
+++ b/components/images/CachingImage.qml
@@ -1,5 +1,6 @@
import qs.utils
import Caelestia
+import Quickshell
import QtQuick
Image {
@@ -20,6 +21,14 @@ Image {
CUtils.saveItem(this, manager.cachePath);
}
+ Connections {
+ target: QsWindow.window
+
+ function onDevicePixelRatioChanged(): void {
+ manager.updateSource();
+ }
+ }
+
CachingImageManager {
id: manager