From a055f80759e245475e7b2f72850f8b6e1ba75659 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 8 Jan 2026 16:39:42 -0500 Subject: remove pfp --- modules/dashboard/Wrapper.qml | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'modules/dashboard/Wrapper.qml') 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 } } } -- cgit v1.2.3-freya