Defer hiding the dock and going back/forward when Pane is on the stack
This commit is contained in:
parent
e3b2407ebf
commit
780ece551e
2 changed files with 18 additions and 10 deletions
|
@ -1645,9 +1645,11 @@ impl Pane {
|
|||
cx,
|
||||
|this, cx| {
|
||||
if let Some(workspace) = this.workspace.upgrade(cx) {
|
||||
workspace.update(cx, |workspace, cx| {
|
||||
Dock::hide_dock(workspace, &Default::default(), cx)
|
||||
})
|
||||
cx.window_context().defer(move |cx| {
|
||||
workspace.update(cx, |workspace, cx| {
|
||||
Dock::hide_dock(workspace, &Default::default(), cx)
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue