workspace: Respect minimized state when deserializing workspaces (#24127)
Fixes a regression from #24015 pointed out in #24093 Closes #24093 Release Notes: - N/A
This commit is contained in:
parent
f45d58f01a
commit
6b48a6e690
3 changed files with 3 additions and 4 deletions
|
@ -332,6 +332,7 @@ pub fn init(cx: &mut App) {
|
|||
app_state,
|
||||
cx,
|
||||
|workspace, window, cx| {
|
||||
cx.activate(true);
|
||||
Editor::new_file(workspace, &Default::default(), window, cx)
|
||||
},
|
||||
)
|
||||
|
|
|
@ -1284,10 +1284,7 @@ impl Workspace {
|
|||
.unwrap_or_default();
|
||||
|
||||
window
|
||||
.update(&mut cx, |_, window, cx| {
|
||||
window.activate_window();
|
||||
cx.activate(true);
|
||||
})
|
||||
.update(&mut cx, |_, window, _| window.activate_window())
|
||||
.log_err();
|
||||
Ok((window, opened_items))
|
||||
})
|
||||
|
|
|
@ -796,6 +796,7 @@ fn register_actions(
|
|||
app_state,
|
||||
cx,
|
||||
|workspace, window, cx| {
|
||||
cx.activate(true);
|
||||
Editor::new_file(workspace, &Default::default(), window, cx)
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue