ENH:Import 3mf into existing projects and remember previous selection
jira: none Change-Id: I799c3aa240d614fc4ff7bf8ff02a9879d1a4b459
This commit is contained in:
parent
b20700ddc1
commit
b651cee316
|
@ -131,7 +131,8 @@ void AppConfig::set_defaults()
|
|||
|
||||
if (get("single_instance").empty())
|
||||
set_bool("single_instance", false);
|
||||
|
||||
if (get("import_3mf_as_project").empty())
|
||||
set_bool("import_3mf_as_project", true);
|
||||
#ifdef SUPPORT_REMEMBER_OUTPUT_PATH
|
||||
if (get("remember_output_path").empty())
|
||||
set_bool("remember_output_path", true);
|
||||
|
|
|
@ -12101,7 +12101,7 @@ ProjectDropDialog::ProjectDropDialog(const std::string &filename)
|
|||
m_sizer_select_v->Add(select_f, 0, wxEXPAND, 5);
|
||||
m_sizer_select_v->Add(select_s, 0, wxEXPAND, 5);
|
||||
//m_sizer_select_v->Add(select_t, 0, wxEXPAND, 5);
|
||||
select_radio(2);
|
||||
select_radio(wxGetApp().app_config->get_bool("import_3mf_as_project") ? 1 : 2);
|
||||
|
||||
m_sizer_select_h->Add(m_sizer_select_v, 0, wxALIGN_CENTER | wxLEFT, 22);
|
||||
|
||||
|
@ -12284,6 +12284,11 @@ void ProjectDropDialog::on_select_radio(wxMouseEvent &event)
|
|||
if (rs->m_groupid == groupid && rs->m_radiobox->GetId() == event.GetId()) {
|
||||
set_action(rs->m_select_id);
|
||||
rs->m_radiobox->SetValue(true);
|
||||
if (rs->m_select_id == 1) {
|
||||
wxGetApp().app_config->set_bool("import_3mf_as_project", true);
|
||||
} else {
|
||||
wxGetApp().app_config->set_bool("import_3mf_as_project", false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue