Don't show inline options for instrumentation statistics.

This commit is contained in:
Bartosz Taudul 2024-03-13 23:39:16 +01:00
parent dec5b851af
commit f5f82a2bd5
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -542,24 +542,27 @@ void View::DrawStatistics()
}
}
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::SeparatorEx( ImGuiSeparatorFlags_Vertical );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
if( m_statSeparateInlines ) ImGui::BeginDisabled();
ImGui::TextUnformatted( "Inlines" );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::Checkbox( ICON_FA_LAYER_GROUP " Aggregate", &m_mergeInlines );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::Checkbox( ICON_FA_LINK " Base relative", &m_relativeInlines );
if( m_statSeparateInlines ) ImGui::EndDisabled();
if( m_statMode == 1 )
{
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::SeparatorEx( ImGuiSeparatorFlags_Vertical );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
if( m_statSeparateInlines ) ImGui::BeginDisabled();
ImGui::TextUnformatted( "Inlines" );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::Checkbox( ICON_FA_LAYER_GROUP " Aggregate", &m_mergeInlines );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::Checkbox( ICON_FA_LINK " Base relative", &m_relativeInlines );
if( m_statSeparateInlines ) ImGui::EndDisabled();
}
ImGui::Separator();
ImGui::PopStyleVar();