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(); }