Take pane state internally

This commit is contained in:
Joao Freitas 2023-05-19 12:12:08 +01:00
parent 0cb84c1c4c
commit bc590e2d6f
No known key found for this signature in database
GPG key ID: 4FAF61C62BC37389
2 changed files with 9 additions and 22 deletions

View file

@ -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) => {