Draw external frames dimmed in sample entry stacks.

This commit is contained in:
Bartosz Taudul
2026-05-30 02:00:45 +02:00
parent 5e6d872940
commit 0778ef85c6

View File

@@ -1038,7 +1038,8 @@ void View::DrawSampleParents()
{
const auto& frame = frameData->data[f];
if( m_worker.IsFrameExternal( frame.file, frameData->imageName ) )
const auto isExternal = m_worker.IsFrameExternal( frame.file, frameData->imageName );
if( isExternal )
{
if( !m_showExternalFrames )
{
@@ -1091,6 +1092,10 @@ void View::DrawSampleParents()
{
TextColoredUnformatted( 0xFF8888FF, txt );
}
else if( isExternal )
{
TextDisabledUnformatted( txt );
}
else if( m_vd.shortenName == ShortenName::Never )
{
ImGui::TextUnformatted( txt );