From 3221ca18583c18e9852c25476adaf2f1f9b7dabc Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 7 Jul 2025 14:20:10 +1000 Subject: dashboard: fix pfp picker Fixes caelestia-dots/caelestia#21 --- modules/dashboard/dash/User.qml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'modules/dashboard/dash') diff --git a/modules/dashboard/dash/User.qml b/modules/dashboard/dash/User.qml index ba4fa18..baf9efb 100644 --- a/modules/dashboard/dash/User.qml +++ b/modules/dashboard/dash/User.qml @@ -11,6 +11,7 @@ Row { id: root required property PersistentProperties visibilities + required property PersistentProperties state padding: Appearance.padding.large spacing: Appearance.spacing.normal @@ -46,7 +47,7 @@ Row { onClicked: { root.visibilities.launcher = false; - dialog.open(); + root.state.facePicker.open(); } StyledRect { @@ -103,18 +104,6 @@ Row { } } } - - FileDialog { - id: dialog - - nameFilters: [`Image files (${Wallpapers.extensions.map(e => `*.${e}`).join(" ")})`] - - onAccepted: { - Paths.copy(selectedFile, `${Paths.home}/.face`); - pfp.pathChanged(); - Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "low", "Profile picture changed", `Profile picture changed to ${Paths.strip(selectedFile)}`]); - } - } } Column { -- cgit v1.2.3-freya