layouts: don't double activate persp-mode
If persp-mode is already activated, don't re-activate it. Should fix bug where running dotspacemacs/sync-configuration-layers (SPC-f-e-R) resets all the layouts.
This commit is contained in:
parent
a462f65af5
commit
2a669648aa
1 changed files with 5 additions and 2 deletions
|
@ -108,8 +108,11 @@
|
|||
persp-reset-windows-on-nil-window-conf nil
|
||||
persp-set-last-persp-for-new-frames nil
|
||||
persp-save-dir spacemacs-layouts-directory)
|
||||
;; always activate persp-mode
|
||||
(persp-mode)
|
||||
;; always activate persp-mode, unless it is already active (e.g. don't
|
||||
;; re-activate during `dotspacemacs/sync-configuration-layers' - see
|
||||
;; issues #5925 and #3875)
|
||||
(unless (bound-and-true-p persp-mode)
|
||||
(persp-mode))
|
||||
;; layouts transient state
|
||||
(spacemacs|transient-state-format-hint layouts
|
||||
spacemacs--layouts-ts-full-hint
|
||||
|
|
Reference in a new issue