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,14 +445,15 @@ What it is set to is controlled by `+doom-dashboard-pwd-policy'."
|
|||
?\n)))))
|
||||
|
||||
(defun doom-dashboard-widget-loaded ()
|
||||
(insert
|
||||
"\n\n"
|
||||
(propertize
|
||||
(+doom-dashboard--center
|
||||
+doom-dashboard--width
|
||||
(doom-display-benchmark-h 'return))
|
||||
'face 'doom-dashboard-loaded)
|
||||
"\n"))
|
||||
(when doom-init-time
|
||||
(insert
|
||||
"\n\n"
|
||||
(propertize
|
||||
(+doom-dashboard--center
|
||||
+doom-dashboard--width
|
||||
(doom-display-benchmark-h 'return))
|
||||
'face 'doom-dashboard-loaded)
|
||||
"\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