From 9f8ff236d68793f7141221e31efa78573bfb9985 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 25 Feb 2020 19:36:36 -0500 Subject: [PATCH] Fix load and save of PNS settings --- pcbnew/dialogs/dialog_pns_settings.cpp | 2 ++ pcbnew/router/pns_routing_settings.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/pcbnew/dialogs/dialog_pns_settings.cpp b/pcbnew/dialogs/dialog_pns_settings.cpp index d62b73edf9..b2191962bc 100644 --- a/pcbnew/dialogs/dialog_pns_settings.cpp +++ b/pcbnew/dialogs/dialog_pns_settings.cpp @@ -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) } diff --git a/pcbnew/router/pns_routing_settings.cpp b/pcbnew/router/pns_routing_settings.cpp index f06768115f..981a3374fc 100644 --- a/pcbnew/router/pns_routing_settings.cpp +++ b/pcbnew/router/pns_routing_settings.cpp @@ -91,6 +91,7 @@ ROUTING_SETTINGS::ROUTING_SETTINGS( JSON_SETTINGS* aParent, const std::string& a m_params.emplace_back( new PARAM( "max_radius", &m_maxRadius, 1000000 ) ); m_params.emplace_back( new PARAM( "use_rounded", &m_roundedCorners, false ) ); + LoadFromFile(); }