Support layouts with multiple panes of same type
This commit is contained in:
parent
72905f9ccc
commit
49c0ce9a62
1 changed files with 10 additions and 7 deletions
|
|
@ -36,8 +36,11 @@ def fix_layout(panes, layout, forced=False):
|
||||||
if name not in panes:
|
if name not in panes:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Resize pane
|
# Resize pane(s)
|
||||||
pane_id = panes[name]
|
pane_list = panes[name]
|
||||||
|
if isinstance(pane_list, str):
|
||||||
|
pane_list = [pane_list]
|
||||||
|
for pane_id in pane_list:
|
||||||
try:
|
try:
|
||||||
resize_pane(pane_id, **data)
|
resize_pane(pane_id, **data)
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue