mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(doom-dashboard): hide benchmark until available
The dashboard has a chance to display before doom-init-time is calculated. To prevent the resulting type error, hide it until it is ready.
This commit is contained in:
@ -445,6 +445,7 @@ What it is set to is controlled by `+doom-dashboard-pwd-policy'."
|
||||
?\n)))))
|
||||
|
||||
(defun doom-dashboard-widget-loaded ()
|
||||
(when doom-init-time
|
||||
(insert
|
||||
"\n\n"
|
||||
(propertize
|
||||
@ -452,7 +453,7 @@ What it is set to is controlled by `+doom-dashboard-pwd-policy'."
|
||||
+doom-dashboard--width
|
||||
(doom-display-benchmark-h 'return))
|
||||
'face 'doom-dashboard-loaded)
|
||||
"\n"))
|
||||
"\n")))
|
||||
|
||||
(defun doom-dashboard-widget-shortmenu ()
|
||||
(let ((all-the-icons-scale-factor 1.45)
|
||||
|
Reference in New Issue
Block a user