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:
parent
8c442d84b9
commit
29dfce32bd
1 changed files with 9 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue