dock: Disallow move panel when it is zoomed in. (#346)

Closes #342
This commit is contained in:
Jason Lee 2024-10-15 14:52:40 +08:00 committed by GitHub
parent 2f4ee70f46
commit 6a5fff889e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,7 +261,7 @@ impl TabPanel {
/// Return true if the panel can be split or move
fn can_split(&self) -> bool {
self.stack_panel.is_some()
self.stack_panel.is_some() && !self.is_zoomed
}
pub(super) fn set_collapsed(&mut self, collapsed: bool, cx: &mut ViewContext<Self>) {