fix(workspaces): save current tab-bar tabs to file

This commit is contained in:
roife 2022-12-23 23:22:44 +08:00 committed by Henrik Lissner
parent f6616e8a06
commit d12b0ebc80
2 changed files with 18 additions and 1 deletions

View file

@ -282,4 +282,7 @@ stored in `persp-save-dir'.")
(add-hook! 'tab-bar-mode-hook
(defun +workspaces-set-up-tab-bar-integration-h ()
(add-hook 'persp-before-deactivate-functions #'+workspaces-save-tab-bar-data-h)
(add-hook 'persp-activated-functions #'+workspaces-load-tab-bar-data-h))))
(add-hook 'persp-activated-functions #'+workspaces-load-tab-bar-data-h)
;; Load and save configurations for tab-bar.
(add-hook 'persp-before-save-state-to-file-functions #'+workspaces-save-tab-bar-data-to-file-h)
(+workspaces-load-tab-bar-data-from-file-h))))