Added new tech ENABLE_LAYOUT_NO_RESTART -> Enable changing application layout without the need to restart it

This commit is contained in:
enricoturri1966 2020-06-11 14:02:59 +02:00
parent 0a7e2aa8da
commit 920d9677da
5 changed files with 269 additions and 9 deletions
src/slic3r/GUI

View file

@ -234,6 +234,7 @@ void PreferencesDialog::accept()
}
}
#if !ENABLE_LAYOUT_NO_RESTART
if (m_settings_layout_changed) {
// the dialog needs to be destroyed before the call to recreate_gui()
// or sometimes the application crashes into wxDialogBase() destructor
@ -255,6 +256,7 @@ void PreferencesDialog::accept()
return;
}
}
#endif // !ENABLE_LAYOUT_NO_RESTART
for (std::map<std::string, std::string>::iterator it = m_values.begin(); it != m_values.end(); ++it)
app_config->set(it->first, it->second);