summaryrefslogtreecommitdiff
path: root/modules/dashboard/dash/User.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-07 14:20:10 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-07 14:20:10 +1000
commit3221ca18583c18e9852c25476adaf2f1f9b7dabc (patch)
tree2e145f088415a6aefc12b157b216c670cab2b357 /modules/dashboard/dash/User.qml
parentissues: better templates (diff)
downloadcaelestia-shell-3221ca18583c18e9852c25476adaf2f1f9b7dabc.tar.gz
caelestia-shell-3221ca18583c18e9852c25476adaf2f1f9b7dabc.tar.bz2
caelestia-shell-3221ca18583c18e9852c25476adaf2f1f9b7dabc.zip
dashboard: fix pfp picker
Fixes caelestia-dots/caelestia#21
Diffstat (limited to 'modules/dashboard/dash/User.qml')
-rw-r--r--modules/dashboard/dash/User.qml15
1 files changed, 2 insertions, 13 deletions
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 {