feat(session): save the last session when kitty exits
This commit is contained in:
2 files changed
+140
No files matched your search
@@ -68,6 +68,7 @@ from .options.types import Options
|
||||
from .options.utils import DELETE_ENV_VAR
|
||||
from .os_window_size import edge_spacing, initial_window_size_func
|
||||
from .session import create_sessions, get_os_window_sizing_data
|
||||
from .session_restore import save_session_of
|
||||
from .shaders.slang import load_shader_programs
|
||||
from .types import LayerShellConfig
|
||||
from .utils import (
|
||||
@@ -394,6 +395,8 @@ def _run_app(opts: Options, args: CLIOptions, bad_lines: Sequence[BadLine] = (),
|
||||
try:
|
||||
boss.child_monitor.main_loop()
|
||||
finally:
|
||||
if not _is_panel_kitten:
|
||||
save_session_of(boss)
|
||||
boss.destroy()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user