Remember active panel after closing dock (#23207)
A recent change in #22730 (to reduce workspace serialization) means that a dock "forgets" its active panel whenever it is closed. When opened again, the change in #22346 (which establishes a panel activation order) takes effect, always opening the highest-priority panel for that dock instead of the panel the user previously manually activated. The result is that if you have, say, the outline panel active on the right dock, and toggle the dock closed and then back open again, the assistant panel will always appear instead. This PR reverts part of the change in #22730 to ensure a dock remembers its active panel when it is closed. Closes #22923. Release Notes: - Fixed an issue where docks did not remember the active panel.
This commit is contained in:
parent
2ef4883937
commit
4ed3c133cf
1 changed files with 0 additions and 3 deletions
|
@ -339,9 +339,6 @@ impl Dock {
|
|||
self.is_open = open;
|
||||
if let Some(active_panel) = self.active_panel_entry() {
|
||||
active_panel.panel.set_active(open, cx);
|
||||
if !open {
|
||||
self.active_panel_index = None;
|
||||
}
|
||||
}
|
||||
|
||||
cx.notify();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue