Display notification icon when context is limited.

This commit is contained in:
Bartosz Taudul 2021-11-13 16:33:09 +01:00
parent cc425c4a2d
commit 25316ddada
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1036,6 +1036,17 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen );
if( inlineList )
{
if( m_calcInlineStats )
{
ImGui::SameLine();
TextColoredUnformatted( ImVec4( 1.f, 1.f, 0.2f, 1.f ), ICON_FA_EXCLAMATION_TRIANGLE );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Context is limited to an inline function" );
ImGui::EndTooltip();
}
}
SmallCheckbox( ICON_FA_SITEMAP " Function:", &m_calcInlineStats );
ImGui::SameLine();
ImGui::SetNextItemWidth( -1 );