Don't activate main workspace if auto-resume is on
Other checks were unnecessary.
This commit is contained in:
parent
ba32bf6e4d
commit
90c3202f58
1 changed files with 2 additions and 4 deletions
|
@ -62,10 +62,8 @@ renamed.")
|
|||
(unless (persp-with-name-exists-p +workspaces-main)
|
||||
(persp-add-new +workspaces-main))
|
||||
;; Switch to it if we aren't auto-loading the last session
|
||||
(when (or (equal (safe-persp-name (get-current-persp)) persp-nil-name)
|
||||
(and (one-window-p)
|
||||
(eq (window-buffer (selected-window))
|
||||
(doom-fallback-buffer))))
|
||||
(when (and (equal (safe-persp-name (get-current-persp)) persp-nil-name)
|
||||
(= persp-auto-resume-time -1))
|
||||
(persp-frame-switch +workspaces-main frame)))
|
||||
(add-hook 'delayed-warnings-hook #'display-delayed-warnings t)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue