Make interactive installation of python layer not fail
If a layer is interactively installed by visiting a file the progress file is updated without being properly initialized before causing a division by zero. Now `spacemacs/update-progress-bar` will ignore the call if `spacemacs-loading-dots-chunk-threshold` is <= 0.
This commit is contained in:
parent
6049d901f6
commit
f44047ccdc
|
@ -35,8 +35,9 @@
|
|||
|
||||
(defun spacemacs/update-progress-bar ()
|
||||
"Update progress bar by incrementing its value by 1.
|
||||
Display the progress bar by chunks of size `spacemacs--loading-dots-chunk-threshold'"
|
||||
Display the progress bar by chunks of size `spacemacs-loading-dots-chunk-threshold'"
|
||||
(when (and (not noninteractive)
|
||||
(> spacemacs-loading-dots-chunk-threshold 0)
|
||||
dotspacemacs-loading-progress-bar)
|
||||
(setq spacemacs-loading-counter (1+ spacemacs-loading-counter))
|
||||
(setq spacemacs-loading-value (1+ spacemacs-loading-value))
|
||||
|
|
Loading…
Reference in New Issue