mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-29 06:28:24 +00:00
Fix regression with no tooltips on disabled items.
This commit is contained in:
@@ -290,7 +290,7 @@ static constexpr const uint32_t AsmSyntaxColors[] = {
|
||||
|
||||
[[maybe_unused]] static tracy_force_inline void TooltipIfHovered( const char* text )
|
||||
{
|
||||
if( !ImGui::IsItemHovered() ) return;
|
||||
if( !ImGui::IsItemHovered( ImGuiHoveredFlags_AllowWhenDisabled ) ) return;
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextUnformatted( text );
|
||||
ImGui::EndTooltip();
|
||||
|
||||
Reference in New Issue
Block a user