mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Fix of crashing Preferences in Gcode Viewer
This commit is contained in:
@@ -452,8 +452,10 @@ void PreferencesDialog::build(size_t selected_tab)
|
|||||||
|
|
||||||
activate_options_tab(m_optgroup_gui);
|
activate_options_tab(m_optgroup_gui);
|
||||||
// set Field for notify_release to its value to activate the object
|
// set Field for notify_release to its value to activate the object
|
||||||
boost::any val = s_keys_map_NotifyReleaseMode.at(app_config->get("notify_release"));
|
if (is_editor) {
|
||||||
m_optgroup_gui->get_field("notify_release")->set_value(val, false);
|
boost::any val = s_keys_map_NotifyReleaseMode.at(app_config->get("notify_release"));
|
||||||
|
m_optgroup_gui->get_field("notify_release")->set_value(val, false);
|
||||||
|
}
|
||||||
|
|
||||||
if (is_editor) {
|
if (is_editor) {
|
||||||
create_icon_size_slider();
|
create_icon_size_slider();
|
||||||
|
|||||||
Reference in New Issue
Block a user