summaryrefslogtreecommitdiff
path: root/modules/dashboard/Wrapper.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dashboard/Wrapper.qml')
-rw-r--r--modules/dashboard/Wrapper.qml12
1 files changed, 0 insertions, 12 deletions
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
}
}
}