diff options
Diffstat (limited to 'modules/dashboard/dash')
| -rw-r--r-- | modules/dashboard/dash/User.qml | 15 |
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 { |