From 62e062ee8221d4c698d09124f7a76d4920b9dbfd Mon Sep 17 00:00:00 2001 From: Martijn Courteaux Date: Fri, 22 Aug 2025 16:08:23 +0200 Subject: [PATCH] Fix highlight on the asteriks label. --- profiler/src/profiler/TracyView_Options.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/profiler/src/profiler/TracyView_Options.cpp b/profiler/src/profiler/TracyView_Options.cpp index bd27cac9..45ca4fac 100644 --- a/profiler/src/profiler/TracyView_Options.cpp +++ b/profiler/src/profiler/TracyView_Options.cpp @@ -855,9 +855,10 @@ void View::DrawOptions() DefaultMarker( default_markers_active, false ); ImGui::SameLine( 0.0f, 1.0f ); ImGui::TextUnformatted( ": The default value for this option is configurable." ); + bool highlight = false; if( ImGui::IsItemHovered() ) { - default_markers_active = true; + highlight = true; } if( ImGui::Button( "Save current options as defaults" ) ) @@ -872,9 +873,10 @@ void View::DrawOptions() s_config.drawContextSwitches = m_vd.drawContextSwitches; SaveConfig(); } + if( ImGui::IsItemHovered() ) { - default_markers_active = true; + highlight = true; ImGui::BeginTooltip(); const auto fn = tracy::GetSavePath( "tracy.ini" ); @@ -890,10 +892,8 @@ void View::DrawOptions() ImGui::TextUnformatted( "For now, to restore the default values, you may delete this configuration file." ); ImGui::EndTooltip(); } - else - { - default_markers_active = false; - } + + default_markers_active = highlight; ImGui::End(); }