Don't display operands, if none.

This commit is contained in:
Bartosz Taudul 2020-05-01 16:15:33 +02:00
parent 47b8f052bd
commit bb4b08e8cf

View File

@ -2141,6 +2141,8 @@ void SourceView::RenderAsmLine( const AsmLine& line, uint32_t ipcnt, uint32_t ip
if( var.port != -1 ) TextFocused( "Ports:", PortList[var.port] );
ImGui::Separator();
TextFocused( "ISA set:", IsaList[var.isaSet] );
if( var.descNum > 0 )
{
TextDisabledUnformatted( "Operands:" );
ImGui::SameLine();
bool first = true;
@ -2187,6 +2189,7 @@ void SourceView::RenderAsmLine( const AsmLine& line, uint32_t ipcnt, uint32_t ip
}
}
}
}
ImGui::EndTooltip();
if( m_font ) ImGui::PushFont( m_font );
}