mirror of
https://github.com/wolfpld/tracy.git
synced 2026-11-13 11:25:51 +00:00
Reorder symbol statistics checkboxes and disable kernel when external is off.
External symbols checkbox now appears before kernel symbols, and kernel is disabled when external is not selected since kernel symbols are a subset of external symbols.
This commit is contained in:
@@ -518,11 +518,13 @@ void View::DrawStatistics()
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
ImGui::Checkbox( ICON_FA_HAT_WIZARD " Kernel", &m_statShowKernel );
|
||||
ImGui::Checkbox( ICON_FA_SHIELD_HALVED " External", &m_statShowExternal );
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
ImGui::Checkbox( ICON_FA_SHIELD_HALVED " External", &m_statShowExternal );
|
||||
if( !m_statShowExternal ) ImGui::BeginDisabled();
|
||||
ImGui::Checkbox( ICON_FA_HAT_WIZARD " Kernel", &m_statShowKernel );
|
||||
if( !m_statShowExternal ) ImGui::EndDisabled();
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
|
||||
Reference in New Issue
Block a user