mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-29 04:23:11 +08:00
FIX: Force load ams list when click sync button
Change-Id: I579adc9586e0bca85c20be2784b7513361b38f7e Jira: none
This commit is contained in:
parent
1c5e657071
commit
9c1afdc63c
@ -1725,6 +1725,11 @@ void Sidebar::load_ams_list(std::string const &device, MachineObject* obj)
|
|||||||
|
|
||||||
void Sidebar::sync_ams_list()
|
void Sidebar::sync_ams_list()
|
||||||
{
|
{
|
||||||
|
// Force load ams list
|
||||||
|
auto obj = wxGetApp().getDeviceManager()->get_selected_machine();
|
||||||
|
if (obj)
|
||||||
|
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
|
||||||
|
|
||||||
auto & list = wxGetApp().preset_bundle->filament_ams_list;
|
auto & list = wxGetApp().preset_bundle->filament_ams_list;
|
||||||
if (list.empty()) {
|
if (list.empty()) {
|
||||||
MessageDialog dlg(this,
|
MessageDialog dlg(this,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user