From f587630e1701ef44016459a4033fa95c88fed838 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 11 Jan 2021 02:41:44 -0500 Subject: [PATCH] Use module instead of package detection Otherwise, the dashboard will break if the user has perspective.el installed, instead of persp-mode. --- modules/ui/doom-dashboard/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 494205178..8de62e8ad 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -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))))