mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 06:54:58 +02:00
Fix enabled_layouts in session files not being respected
This commit is contained in:
@@ -59,6 +59,8 @@ class Session:
|
||||
|
||||
def set_enabled_layouts(self, raw):
|
||||
self.tabs[-1].enabled_layouts = to_layout_names(raw)
|
||||
if self.tabs[-1].layout not in self.tabs[-1].enabled_layouts:
|
||||
self.tabs[-1].layout = self.tabs[-1].enabled_layouts[0]
|
||||
|
||||
def set_cwd(self, val):
|
||||
self.tabs[-1].cwd = val
|
||||
|
||||
Reference in New Issue
Block a user