diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-07 17:58:18 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-07 17:58:18 +1000 |
| commit | 8a6679eace029338747f0fe95ca683016fce783e (patch) | |
| tree | cfec1f7045ac457478acf8917a123907ccee5d6c /modules | |
| parent | dashboard: fix pfp picker (diff) | |
| download | caelestia-shell-8a6679eace029338747f0fe95ca683016fce783e.tar.gz caelestia-shell-8a6679eace029338747f0fe95ca683016fce783e.tar.bz2 caelestia-shell-8a6679eace029338747f0fe95ca683016fce783e.zip | |
paths: decode urls
Fixes spaces in paths breaking things
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/background/Wallpaper.qml | 6 | ||||
| -rw-r--r-- | modules/dashboard/dash/User.qml | 2 | ||||
| -rw-r--r-- | modules/lock/Input.qml | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/modules/background/Wallpaper.qml b/modules/background/Wallpaper.qml index 7238303..ef25885 100644 --- a/modules/background/Wallpaper.qml +++ b/modules/background/Wallpaper.qml @@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound import "root:/widgets" import "root:/services" import "root:/config" +import "root:/utils" import QtQuick import QtQuick.Dialogs @@ -63,9 +64,10 @@ Item { FileDialog { id: dialog + title: qsTr("Select a wallpaper") + acceptLabel: qsTr("Select") nameFilters: [`Image files (${Wallpapers.extensions.map(e => `*.${e}`).join(" ")})`] - - onAccepted: Wallpapers.setWallpaper(selectedFile.toString().replace("file://", "")) + onAccepted: Wallpapers.setWallpaper(Paths.strip(selectedFile)) } StateLayer { diff --git a/modules/dashboard/dash/User.qml b/modules/dashboard/dash/User.qml index baf9efb..403885f 100644 --- a/modules/dashboard/dash/User.qml +++ b/modules/dashboard/dash/User.qml @@ -36,7 +36,7 @@ Row { id: pfp anchors.fill: parent - path: `${Paths.home}/.face` + path: `${Paths.stringify(Paths.home)}/.face` } MouseArea { diff --git a/modules/lock/Input.qml b/modules/lock/Input.qml index f5b3c16..cb2146a 100644 --- a/modules/lock/Input.qml +++ b/modules/lock/Input.qml @@ -43,7 +43,7 @@ ColumnLayout { CachingImage { anchors.fill: parent - path: `${Paths.home}/.face` + path: `${Paths.stringify(Paths.home)}/.face` } } |