Take pane state internally
This commit is contained in:
parent
0cb84c1c4c
commit
bc590e2d6f
2 changed files with 9 additions and 22 deletions
|
|
@ -110,10 +110,7 @@ impl Application for Example {
|
|||
target,
|
||||
region,
|
||||
}) => {
|
||||
if let Some(state) = self.panes.get(&pane) {
|
||||
let pane = (*state, &pane);
|
||||
self.panes.split_with(&target, pane, region);
|
||||
}
|
||||
self.panes.split_with(&target, &pane, region);
|
||||
}
|
||||
Message::Dragged(_) => {}
|
||||
Message::TogglePin(pane) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue