mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 15:57:55 -06:00
FIX: fix save preset problem
Change-Id: I0e6f53b0386e8f04babe2d6c7d18f515c37caae3
This commit is contained in:
parent
7910e681e4
commit
a98b781425
5 changed files with 102 additions and 25 deletions
|
@ -1515,10 +1515,18 @@ void GUI::CalibrateFilamentComboBox::update()
|
|||
|
||||
void GUI::CalibrateFilamentComboBox::OnSelect(wxCommandEvent &evt)
|
||||
{
|
||||
auto marker = reinterpret_cast<Marker>(this->GetClientData(evt.GetSelection()));
|
||||
if (marker >= LABEL_ITEM_DISABLED && marker < LABEL_ITEM_MAX) {
|
||||
this->SetSelection(evt.GetSelection() + 1);
|
||||
return;
|
||||
}
|
||||
m_is_compatible = true;
|
||||
static_cast<FilamentComboBox*>(m_parent)->Enable(true);
|
||||
std::string preset_name = m_collection->get_preset_name_by_alias(evt.GetString().ToUTF8().data());
|
||||
m_selected_preset = m_collection->find_preset(preset_name);
|
||||
std::string selected_name = evt.GetString().ToUTF8().data();
|
||||
selected_name = Preset::remove_suffix_modified(selected_name);
|
||||
m_selected_preset = m_collection->find_preset(selected_name);
|
||||
std::string preset_name = m_collection->get_preset_name_by_alias(selected_name);
|
||||
m_selected_preset = m_collection->find_preset(preset_name);
|
||||
SimpleEvent e(EVT_CALIBRATION_TRAY_SELECTION_CHANGED);
|
||||
auto cali_tab = wxGetApp().mainframe->m_calibration->get_tabpanel();
|
||||
auto calibration_wizard = static_cast<CalibrationWizard*>(cali_tab->GetPage(cali_tab->GetSelection()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue