Make impact option active only if hw samples are enabled.

This commit is contained in:
Bartosz Taudul
2026-05-24 14:55:59 +02:00
parent ec1c2d4267
commit 5fd0dc569b

View File

@@ -1020,7 +1020,9 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
{
SmallCheckbox( ICON_FA_HAMMER " HW", &m_hwSamples );
ImGui::SameLine();
if( !m_hwSamples ) ImGui::BeginDisabled();
SmallCheckbox( ICON_FA_CAR_BURST " Impact", &m_hwSamplesRelative );
if( !m_hwSamples ) ImGui::EndDisabled();
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();