mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Disable child calls checkbox while processing data.
This commit is contained in:
parent
0d8ee47231
commit
8db9bcf7f8
@ -1120,7 +1120,25 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view )
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
ImGui::SameLine();
|
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 );
|
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::SameLine();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
@ -1144,7 +1162,7 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view )
|
|||||||
if( ImGui::IsItemHovered() )
|
if( ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
ImGui::TextUnformatted( "Waiting for background tasks to finish" );
|
ImGui::TextUnformatted( "Please wait, processing data..." );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user