mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-19 18:29:10 +08:00
FIX: Blank page appears when editing presets
Jira: 5563 Change-Id: I4c49e05515b1beff55991e92f8079c4499c27eab (cherry picked from commit e86517d290f4cd0765a230d811b0ddf2c9f34c17)
This commit is contained in:
parent
dc0d64ba29
commit
774b372fbf
@ -4463,17 +4463,18 @@ void EditFilamentPresetDialog::edit_preset()
|
||||
return;
|
||||
}
|
||||
|
||||
EndModal(wxID_EDIT);
|
||||
//Popup needs to be called before "restore_last_select_item", otherwise the page may not be updated
|
||||
wxGetApp().params_dialog()->set_editing_filament_id(m_filament_id);
|
||||
wxGetApp().params_dialog()->Popup();
|
||||
tab->restore_last_select_item();
|
||||
|
||||
wxGetApp().get_tab(need_edit_preset->type)->select_preset(need_edit_preset_name);
|
||||
tab->select_preset(need_edit_preset_name);
|
||||
// when some preset have modified, if the printer is not need_edit_preset_name compatible printer, the preset will jump to other preset, need select again
|
||||
if (!need_edit_preset->is_compatible) wxGetApp().get_tab(need_edit_preset->type)->select_preset(need_edit_preset_name);
|
||||
|
||||
if (!need_edit_preset->is_compatible) tab->select_preset(need_edit_preset_name);
|
||||
|
||||
m_selected_printer.clear();
|
||||
m_need_edit_preset_index = -1;
|
||||
|
||||
wxGetApp().params_dialog()->set_editing_filament_id(m_filament_id);
|
||||
EndModal(wxID_EDIT);
|
||||
}
|
||||
|
||||
wxBoxSizer *EditFilamentPresetDialog::create_filament_basic_info()
|
||||
|
@ -7716,9 +7716,6 @@ void Plater::priv::on_modify_filament(SimpleEvent &evt)
|
||||
wxGetApp().mainframe->update_side_preset_ui();
|
||||
update_ui_from_settings();
|
||||
sidebar->update_all_preset_comboboxes();
|
||||
if (wxID_EDIT == res) {
|
||||
wxGetApp().params_dialog()->Popup();
|
||||
}
|
||||
}
|
||||
|
||||
void Plater::priv::enter_gizmos_stack()
|
||||
|
Loading…
x
Reference in New Issue
Block a user