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:
parent
8cd7a1dbc6
commit
f587630e17
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ Possible values:
|
|||
(defvar +doom-dashboard-menu-sections
|
||||
'(("Reload last session"
|
||||
: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)))
|
||||
((require 'desktop nil t)
|
||||
(file-exists-p (desktop-full-file-name))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue