Avoid doing duplicate focus

This commit is contained in:
Mattias Eriksson 2024-01-18 10:15:16 +01:00
parent d9ae46598e
commit 35dcdc686c

View file

@ -1019,10 +1019,7 @@ impl Application for App {
.adjacent(self.pane_model.focus, direction) .adjacent(self.pane_model.focus, direction)
{ {
self.pane_model.focus = adjacent; self.pane_model.focus = adjacent;
return Command::batch([ return self.update_title(Some(adjacent));
self.update_focus(),
self.update_title(Some(adjacent)),
]);
} }
} }
Message::PaneResized(pane_grid::ResizeEvent { split, ratio }) => { Message::PaneResized(pane_grid::ResizeEvent { split, ratio }) => {