diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-01-08 16:39:42 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-01-08 16:39:42 -0500 |
| commit | a055f80759e245475e7b2f72850f8b6e1ba75659 (patch) | |
| tree | 4f1e6063a02271817678447069f8c20bb5d6aa8c /modules/dashboard/Wrapper.qml | |
| parent | remove recording (diff) | |
| download | caelestia-shell-a055f80759e245475e7b2f72850f8b6e1ba75659.tar.gz caelestia-shell-a055f80759e245475e7b2f72850f8b6e1ba75659.tar.bz2 caelestia-shell-a055f80759e245475e7b2f72850f8b6e1ba75659.zip | |
remove pfp
Diffstat (limited to 'modules/dashboard/Wrapper.qml')
| -rw-r--r-- | modules/dashboard/Wrapper.qml | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/dashboard/Wrapper.qml b/modules/dashboard/Wrapper.qml index 0e37909..3f8f2bd 100644 --- a/modules/dashboard/Wrapper.qml +++ b/modules/dashboard/Wrapper.qml @@ -18,17 +18,6 @@ Item { reloadableId: "dashboardState" } - readonly property FileDialog facePicker: FileDialog { - title: qsTr("Select a profile picture") - filterLabel: qsTr("Image files") - filters: Images.validImageExtensions - onAccepted: path => { - if (CUtils.copyFile(Qt.resolvedUrl(path), Qt.resolvedUrl(`${Paths.home}/.face`))) - Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "low", "-h", `STRING:image-path:${path}`, "Profile picture changed", `Profile picture changed to ${Paths.shortenHome(path)}`]); - else - Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "critical", "Unable to change profile picture", `Failed to change profile picture to ${Paths.shortenHome(path)}`]); - } - } readonly property real nonAnimHeight: state === "visible" ? (content.item?.nonAnimHeight ?? 0) : 0 @@ -99,7 +88,6 @@ Item { sourceComponent: Content { visibilities: root.visibilities state: root.dashState - facePicker: root.facePicker } } } |