Fix load and save of PNS settings
This commit is contained in:
parent
5b6a4d794f
commit
9f8ff236d6
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue