mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Use module instead of package detection
Otherwise, the dashboard will break if the user has perspective.el installed, instead of persp-mode.
This commit is contained in:
@ -48,7 +48,7 @@ Possible values:
|
|||||||
(defvar +doom-dashboard-menu-sections
|
(defvar +doom-dashboard-menu-sections
|
||||||
'(("Reload last session"
|
'(("Reload last session"
|
||||||
:icon (all-the-icons-octicon "history" :face 'doom-dashboard-menu-title)
|
:icon (all-the-icons-octicon "history" :face 'doom-dashboard-menu-title)
|
||||||
:when (cond ((require 'persp-mode nil t)
|
:when (cond ((featurep! :ui workspaces)
|
||||||
(file-exists-p (expand-file-name persp-auto-save-fname persp-save-dir)))
|
(file-exists-p (expand-file-name persp-auto-save-fname persp-save-dir)))
|
||||||
((require 'desktop nil t)
|
((require 'desktop nil t)
|
||||||
(file-exists-p (desktop-full-file-name))))
|
(file-exists-p (desktop-full-file-name))))
|
||||||
|
Reference in New Issue
Block a user