Do not set dirty bit on simulator launch, remove dead code

This commit is contained in:
Mikolaj Wielgus 2021-07-03 16:33:35 +02:00 committed by Jon Evans
parent 9f1ecdd715
commit df2d4966b1
2 changed files with 2 additions and 2 deletions

View File

@ -305,8 +305,6 @@ WINDOW_SETTINGS* SIM_PLOT_FRAME::GetWindowSettings( APP_SETTINGS_BASE* aCfg )
void SIM_PLOT_FRAME::initWorkbook() void SIM_PLOT_FRAME::initWorkbook()
{ {
m_workbook->DeleteAllPages();
if( !m_simulator->Settings()->GetWorkbookFilename().IsEmpty() ) if( !m_simulator->Settings()->GetWorkbookFilename().IsEmpty() )
{ {
wxFileName filename = m_simulator->Settings()->GetWorkbookFilename(); wxFileName filename = m_simulator->Settings()->GetWorkbookFilename();

View File

@ -27,12 +27,14 @@
SIM_WORKBOOK::SIM_WORKBOOK() : wxAuiNotebook() SIM_WORKBOOK::SIM_WORKBOOK() : wxAuiNotebook()
{ {
m_modified = false;
} }
SIM_WORKBOOK::SIM_WORKBOOK( wxWindow* aParent, wxWindowID aId, const wxPoint& aPos, const wxSize& SIM_WORKBOOK::SIM_WORKBOOK( wxWindow* aParent, wxWindowID aId, const wxPoint& aPos, const wxSize&
aSize, long aStyle ) : wxAuiNotebook( aParent, aId, aPos, aSize, aStyle ) aSize, long aStyle ) : wxAuiNotebook( aParent, aId, aPos, aSize, aStyle )
{ {
m_modified = false;
} }