fix: MODEL button in MSPACE now returns to paper space instead of Model tab
When editing inside a viewport (MSPACE), the status bar MODEL button was
sending LayoutSwitch("Model") which switched the entire layout to the
Model tab. The intended behavior (and what the comment documented) is
ExitViewport — just exit the active viewport back to PSPACE.
Fixes part of #10
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7b7622910c
commit
c0ee0d6edc
1 changed files with 1 additions and 1 deletions
|
|
@ -466,7 +466,7 @@ fn space_mode_btn(current_layout: &str, in_mspace: bool) -> Element<'static, Mes
|
|||
let (label, active, on_press) = if is_model_tab {
|
||||
("MODEL", false, None::<Message>)
|
||||
} else if in_mspace {
|
||||
("MODEL", true, Some(Message::LayoutSwitch("Model".to_string())))
|
||||
("MODEL", true, Some(Message::ExitViewport))
|
||||
} else {
|
||||
("PAPER", false, Some(Message::MspaceCommand))
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue