1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-28 20:23:51 +00:00

Disable child calls checkbox while processing data.

This commit is contained in:
Bartosz Taudul 2021-04-18 18:27:39 +02:00
parent 0d8ee47231
commit 8db9bcf7f8
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1120,7 +1120,25 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view )
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
const auto slzReady = worker.AreSourceLocationZonesReady();
if( !slzReady )
{
ImGui::PushItemFlag( ImGuiItemFlags_Disabled, true );
ImGui::PushStyleVar( ImGuiStyleVar_Alpha, ImGui::GetStyle().Alpha * 0.5f );
m_childCalls = false;
}
SmallCheckbox( ICON_FA_SIGN_OUT_ALT " Child calls", &m_childCalls );
if( !slzReady )
{
ImGui::PopStyleVar();
ImGui::PopItemFlag();
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Please wait, processing data..." );
ImGui::EndTooltip();
}
}
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
@ -1144,7 +1162,7 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view )
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Waiting for background tasks to finish" );
ImGui::TextUnformatted( "Please wait, processing data..." );
ImGui::EndTooltip();
}
}