Fix load and save of PNS settings

This commit is contained in:
Jon Evans 2020-02-25 19:36:36 -05:00
parent 5b6a4d794f
commit 9f8ff236d6
2 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,8 @@ void DIALOG_PNS_SETTINGS::OnOkClick( wxCommandEvent& aEvent )
m_settings.SetFreeAngleMode( m_freeAngleMode->GetValue() );
m_settings.SetInlineDragEnabled( m_dragToolMode->GetSelection () ? true : false );
m_settings.SaveToFile();
aEvent.Skip(); // ends returning wxID_OK (default behavior)
}

View File

@ -91,6 +91,7 @@ ROUTING_SETTINGS::ROUTING_SETTINGS( JSON_SETTINGS* aParent, const std::string& a
m_params.emplace_back( new PARAM<int>( "max_radius", &m_maxRadius, 1000000 ) );
m_params.emplace_back( new PARAM<bool>( "use_rounded", &m_roundedCorners, false ) );
LoadFromFile();
}