FIX: [STUDIO-2282] auto expand filament list on sync ams

Change-Id: Iad2fd419fc6da56418cda7423adcbcef641ee2a3
This commit is contained in:
chunmao.guo 2023-03-06 16:01:17 +08:00 committed by Lane.Wei
parent 68c9cb0a8c
commit 91ad491743

View file

@ -1441,6 +1441,9 @@ void Sidebar::sync_ams_list()
wxGetApp().get_tab(Preset::TYPE_FILAMENT)->select_preset(wxGetApp().preset_bundle->filament_presets[0]);
wxGetApp().preset_bundle->export_selections(*wxGetApp().app_config);
dynamic_filament_list.update();
// Expand filament list
p->m_panel_filament_content->SetMaxSize({-1, -1});
Layout();
}
ObjectList* Sidebar::obj_list()