fix: don't show tooltip until ready
This commit is contained in:
parent
0f9faac1ce
commit
b4e884395d
@ -283,10 +283,14 @@ internal class Write : ITab {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var glyphImage = this.GetGlyphImage(i);
|
||||||
|
if (!glyphImage.TryGetWrap(out var wrap, out _)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.BeginTooltip();
|
ImGui.BeginTooltip();
|
||||||
using var endTooltip = new OnDispose(ImGui.EndTooltip);
|
using var endTooltip = new OnDispose(ImGui.EndTooltip);
|
||||||
var glyphImage = this.GetGlyphImage(i);
|
|
||||||
var wrap = glyphImage.GetWrapOrEmpty();
|
|
||||||
ImGui.Image(wrap.ImGuiHandle, new Vector2(imageHeight));
|
ImGui.Image(wrap.ImGuiHandle, new Vector2(imageHeight));
|
||||||
tooltipShown = true;
|
tooltipShown = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user