From b774d39bc787fd803d42222d365c88caa59c3636 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Sat, 11 Jan 2025 20:06:34 -0500 Subject: [PATCH] fix tooltip wonkyness (#4856) --- soh/soh/UIWidgets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soh/soh/UIWidgets.cpp b/soh/soh/UIWidgets.cpp index 2ffea11b4..050c6714c 100644 --- a/soh/soh/UIWidgets.cpp +++ b/soh/soh/UIWidgets.cpp @@ -213,11 +213,11 @@ namespace UIWidgets { } void ReEnableComponent(const char* disabledTooltipText) { - // End of disable region of previous component - ImGui::PopStyleVar(1); if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && strcmp(disabledTooltipText, "") != 0) { ImGui::SetTooltip("%s", disabledTooltipText); } + // End of disable region of previous component + ImGui::PopStyleVar(1); ImGui::PopItemFlag(); }