Calendar: disable clicking on dates unless you have gnome-calendar installed.

This commit is contained in:
ItsLemmy
2025-11-04 09:12:15 -05:00
parent e3a2629cc6
commit 4b67e773b9
2 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -611,8 +611,10 @@ NPanel {
onClicked: {
const dateWithSlashes = `${(modelData.month + 1).toString().padStart(2, '0')}/${modelData.day.toString().padStart(2, '0')}/${modelData.year.toString().substring(2)}`
Quickshell.execDetached(["gnome-calendar", "--date", dateWithSlashes])
root.close()
if (ProgramCheckerService.gnomeCalendarAvailable) {
Quickshell.execDetached(["gnome-calendar", "--date", dateWithSlashes])
root.close()
}
}
onExited: {