mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 12:38:02 +00:00
Refresh window, bypassing view cache, when opening hover or context menu
This commit is contained in:
parent
60b79ef2ea
commit
977832a04e
2 changed files with 2 additions and 0 deletions
|
@ -339,6 +339,7 @@ fn show_hover(
|
|||
|
||||
this.hover_state.info_popover = hover_popover;
|
||||
cx.notify();
|
||||
cx.refresh();
|
||||
})?;
|
||||
|
||||
Ok::<_, anyhow::Error>(())
|
||||
|
|
|
@ -51,6 +51,7 @@ impl ContextMenu {
|
|||
let _on_blur_subscription = cx.on_blur(&focus_handle, |this: &mut ContextMenu, cx| {
|
||||
this.cancel(&menu::Cancel, cx)
|
||||
});
|
||||
cx.refresh();
|
||||
f(
|
||||
Self {
|
||||
items: Default::default(),
|
||||
|
|
Loading…
Reference in a new issue