summaryrefslogtreecommitdiff
path: root/modules/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dashboard')
-rw-r--r--modules/dashboard/Wrapper.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/dashboard/Wrapper.qml b/modules/dashboard/Wrapper.qml
index 6a38bf4..d3630a6 100644
--- a/modules/dashboard/Wrapper.qml
+++ b/modules/dashboard/Wrapper.qml
@@ -1,11 +1,11 @@
pragma ComponentBehavior: Bound
+import qs.widgets.filedialog
import qs.services
import qs.config
import qs.utils
import Quickshell
import QtQuick
-import QtQuick.Dialogs
Item {
id: root
@@ -16,11 +16,11 @@ Item {
readonly property FileDialog facePicker: FileDialog {
title: qsTr("Select a profile picture")
- acceptLabel: qsTr("Select")
- nameFilters: [`Image files (${Wallpapers.extensions.map(e => `*.${e}`).join(" ")})`]
- onAccepted: {
- Paths.copy(selectedFile, `${Paths.home}/.face`);
- Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "low", "-h", `STRING:image-path:${Paths.strip(selectedFile)}`, "Profile picture changed", `Profile picture changed to ${Paths.shortenHome(Paths.strip(selectedFile))}`]);
+ filterLabel: qsTr("Image files")
+ filters: Wallpapers.extensions
+ onAccepted: path => {
+ Paths.copy(path, `${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)}`]);
}
}
}