Fix for session with empty enabled_layouts
This commit is contained in:
parent
af02b735e7
commit
d5d812ccfe
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ def __init__(self, opts, args, on_title_change, session_tab=None, special_window
|
|||
self.opts, self.args = opts, args
|
||||
self.name = getattr(session_tab, 'name', '')
|
||||
self.on_title_change = on_title_change
|
||||
self.enabled_layouts = list((session_tab or opts).enabled_layouts)
|
||||
self.enabled_layouts = list(getattr(session_tab, 'enabled_layouts', None) or opts.enabled_layouts)
|
||||
self.borders = Borders(opts)
|
||||
self.windows = deque()
|
||||
self.active_window_idx = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue