mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
ENh:dynamic_filament_list should update after sync_ams_list
jira: STUDIO-11690 Change-Id: I43cacbd7a5bf74ce410a56afb440ba88d01d08d0 (cherry picked from commit 7d95de151ca5468f3d72e0aea7e35f897505e728) (cherry picked from commit 47c48b64df903ec137922dba390fce572ee48b2d)
This commit is contained in:
@@ -2995,9 +2995,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);
|
||||
update_dynamic_filament_list();*/
|
||||
// Expand filament list
|
||||
p->m_panel_filament_content->SetMaxSize({-1, -1});
|
||||
// BBS:Synchronized consumables information
|
||||
@@ -3080,6 +3077,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);
|
||||
update_dynamic_filament_list();
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user