Sim Window: Display latest netlist without having to run sim

Fixes https://gitlab.com/kicad/code/kicad/issues/11787
This commit is contained in:
Mikolaj Wielgus 2022-09-16 03:08:09 +02:00
parent aa0863cdf4
commit ce3fe46751
1 changed files with 4 additions and 1 deletions

View File

@ -1624,7 +1624,10 @@ void SIM_PLOT_FRAME::onShowNetlist( wxCommandEvent& event )
if( m_schematicFrame == nullptr || m_simulator == nullptr )
return;
NETLIST_VIEW_DIALOG dlg( this, m_simulator->GetNetlist() );
STRING_FORMATTER formatter;
m_circuitModel->GetNetlist( &formatter );
NETLIST_VIEW_DIALOG dlg( this, formatter.GetString() );
dlg.ShowModal();
}