mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Make accumulation combo consistent.
This commit is contained in:
parent
9e67491766
commit
f74818ece5
@ -12532,27 +12532,17 @@ void View::DrawStatistics()
|
||||
{
|
||||
ImGui::Checkbox( ICON_FA_STOPWATCH " Show time", &m_statSampleTime );
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
if( m_statRange.active )
|
||||
{
|
||||
ImGui::PushItemFlag( ImGuiItemFlags_Disabled, true );
|
||||
ImGui::PushStyleVar( ImGuiStyleVar_Alpha, ImGui::GetStyle().Alpha * 0.5f );
|
||||
ImGui::BeginDisabled();
|
||||
m_statAccumulationMode = AccumulationMode::SelfOnly;
|
||||
bool val = true;
|
||||
ImGui::Checkbox( ICON_FA_CLOCK " Self time", &val );
|
||||
ImGui::PopItemFlag();
|
||||
ImGui::PopStyleVar();
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextUnformatted( "Time range limits are only available for self time" );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
AccumulationModeComboBox();
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
AccumulationModeComboBox();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
Loading…
x
Reference in New Issue
Block a user