diff options
Diffstat (limited to 'components/images/CachingImage.qml')
| -rw-r--r-- | components/images/CachingImage.qml | 9 |
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 |