NEW:[STUDIO-4063] auto calculate flushing volumes

jira: STUDIO-4063

Change-Id: If8db1375bc8c17d4c86307c1c93a717f6c0df05a
This commit is contained in:
Kunlong Ma 2023-08-18 14:06:19 +08:00 committed by Lane.Wei
parent 042e6bf991
commit 9a193fbfea
7 changed files with 210 additions and 32 deletions

View file

@ -247,6 +247,7 @@ int PresetComboBox::update_ams_color()
wxGetApp().plater()->on_config_change(new_cfg);
//trigger the filament color changed
wxCommandEvent *evt = new wxCommandEvent(EVT_FILAMENT_COLOR_CHANGED);
evt->SetInt(m_filament_idx);
wxQueueEvent(wxGetApp().plater(), evt);
return idx;
}
@ -698,6 +699,7 @@ PlaterPresetComboBox::PlaterPresetComboBox(wxWindow *parent, Preset::Type preset
wxGetApp().plater()->on_config_change(cfg_new);
wxCommandEvent *evt = new wxCommandEvent(EVT_FILAMENT_COLOR_CHANGED);
evt->SetInt(m_filament_idx);
wxQueueEvent(wxGetApp().plater(), evt);
}
});