Preserve tooltips requested by cached views

Co-Authored-By: Nathan <nathan@zed.dev>
Co-Authored-By: Max <max@zed.dev>
This commit is contained in:
Antonio Scandurra
2024-01-15 19:19:27 +01:00
co-authored by Nathan Max
parent 90f4c70a82
commit 69bbcba99a
4 changed files with 49 additions and 19 deletions
+2 -2
View File
@@ -1433,8 +1433,8 @@ impl Interactivity {
.borrow()
.as_ref()
{
if active_tooltip.tooltip.is_some() {
cx.active_tooltip = active_tooltip.tooltip.clone()
if let Some(tooltip) = active_tooltip.tooltip.clone() {
cx.set_tooltip(tooltip);
}
}
}