fix: don't show tooltip until ready

This commit is contained in:
Anna 2024-07-01 12:13:36 -04:00
parent 0f9faac1ce
commit b4e884395d
Signed by: anna
GPG Key ID: D0943384CD9F87D1

View File

@ -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;
} }