1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use TooltipIfHovered() where appropriate.

This commit is contained in:
Bartosz Taudul
2022-01-01 16:57:48 +01:00
parent d5f12744c4
commit c6da04a18b
3 changed files with 31 additions and 186 deletions
+1 -6
View File
@@ -824,12 +824,7 @@ static void DrawContents()
{
ImGui::SameLine();
tracy::TextColoredUnformatted( 0xFF00FFFF, ICON_FA_EXCLAMATION_TRIANGLE );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Filters are active" );
ImGui::EndTooltip();
}
tracy::TooltipIfHovered( "Filters are active" );
if( showFilter )
{
ImGui::SameLine();