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,14 +445,15 @@ What it is set to is controlled by `+doom-dashboard-pwd-policy'."
|
|||||||
?\n)))))
|
?\n)))))
|
||||||
|
|
||||||
(defun doom-dashboard-widget-loaded ()
|
(defun doom-dashboard-widget-loaded ()
|
||||||
(insert
|
(when doom-init-time
|
||||||
"\n\n"
|
(insert
|
||||||
(propertize
|
"\n\n"
|
||||||
(+doom-dashboard--center
|
(propertize
|
||||||
+doom-dashboard--width
|
(+doom-dashboard--center
|
||||||
(doom-display-benchmark-h 'return))
|
+doom-dashboard--width
|
||||||
'face 'doom-dashboard-loaded)
|
(doom-display-benchmark-h 'return))
|
||||||
"\n"))
|
'face 'doom-dashboard-loaded)
|
||||||
|
"\n")))
|
||||||
|
|
||||||
(defun doom-dashboard-widget-shortmenu ()
|
(defun doom-dashboard-widget-shortmenu ()
|
||||||
(let ((all-the-icons-scale-factor 1.45)
|
(let ((all-the-icons-scale-factor 1.45)
|
||||||
|
Reference in New Issue
Block a user