From 5e8a6683110ade7d00fbeeb2e35f4c64f1645126 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 14 Feb 2021 20:58:34 -0500 Subject: [PATCH] Fix empty dashboard on first daemon frame Dashboard would be empty because +doom-dashboard-reload was never called in daemon sessions (until you switch back to it). --- modules/ui/doom-dashboard/config.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 8de62e8ad..a9a5a3332 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -118,9 +118,7 @@ PLIST can have the following properties: +doom-dashboard-banner-dir))) (when (equal (buffer-name) "*scratch*") (set-window-buffer nil (doom-fallback-buffer)) - (if (daemonp) - (add-hook 'after-make-frame-functions #'+doom-dashboard-reload-frame-h) - (+doom-dashboard-reload))) + (+doom-dashboard-reload)) ;; Ensure the dashboard is up-to-date whenever it is switched to or resized. (add-hook 'window-configuration-change-hook #'+doom-dashboard-resize-h) (add-hook 'window-size-change-functions #'+doom-dashboard-resize-h)