app/calendar: fix edge case with +calendar/quit
The user can open the calendar directly, with `M-x cfw:open-calendar-buffer`, which sidesteps the workspace init logic in =calendar. This fixes +calendar/quit so it can deal with this use case. Mentioned in #4019
This commit is contained in:
parent
7399138736
commit
cf31d2605f
1 changed files with 4 additions and 3 deletions
|
@ -29,11 +29,12 @@
|
|||
"TODO"
|
||||
(interactive)
|
||||
(if (featurep! :ui workspaces)
|
||||
(+workspace/delete "Calendar")
|
||||
(doom-kill-matching-buffers "^\\*cfw:")
|
||||
(when (+workspace-exists-p "Calendar")
|
||||
(+workspace/delete "Calendar"))
|
||||
(when (window-configuration-p +calendar--wconf)
|
||||
(set-window-configuration +calendar--wconf))
|
||||
(setq +calendar--wconf nil)))
|
||||
(setq +calendar--wconf nil))
|
||||
(doom-kill-matching-buffers "^\\*cfw[:-]"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +calendar/open-calendar ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue