Refresh window, bypassing view cache, when opening hover or context menu
This commit is contained in:
@@ -339,6 +339,7 @@ fn show_hover(
|
|||||||
|
|
||||||
this.hover_state.info_popover = hover_popover;
|
this.hover_state.info_popover = hover_popover;
|
||||||
cx.notify();
|
cx.notify();
|
||||||
|
cx.refresh();
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
Ok::<_, anyhow::Error>(())
|
Ok::<_, anyhow::Error>(())
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ impl ContextMenu {
|
|||||||
let _on_blur_subscription = cx.on_blur(&focus_handle, |this: &mut ContextMenu, cx| {
|
let _on_blur_subscription = cx.on_blur(&focus_handle, |this: &mut ContextMenu, cx| {
|
||||||
this.cancel(&menu::Cancel, cx)
|
this.cancel(&menu::Cancel, cx)
|
||||||
});
|
});
|
||||||
|
cx.refresh();
|
||||||
f(
|
f(
|
||||||
Self {
|
Self {
|
||||||
items: Default::default(),
|
items: Default::default(),
|
||||||
|
|||||||
Reference in New Issue
Block a user