ENh:dynamic_filament_list should update after sync_ams_list

jira: STUDIO-11690
Change-Id: I43cacbd7a5bf74ce410a56afb440ba88d01d08d0
(cherry picked from commit 7d95de151ca5468f3d72e0aea7e35f897505e728)
This commit is contained in:
zhou.xu 2025-04-21 17:33:46 +08:00 committed by Lane.Wei
parent a7a74234ad
commit 47c48b64df
1 changed files with 4 additions and 3 deletions

View File

@ -3142,9 +3142,6 @@ void Sidebar::sync_ams_list(bool is_from_big_sync_btn)
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "finish on_filament_count_change";
for (auto& c : p->combos_filament)
c->update();
/*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});
// BBS:Synchronized consumables information
@ -3227,6 +3224,10 @@ void Sidebar::sync_ams_list(bool is_from_big_sync_btn)
}
}
Layout();
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();
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "begin pop_finsish_sync_ams_dialog";
pop_finsish_sync_ams_dialog();
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "finish pop_finsish_sync_ams_dialog";