ENH:add "Sync filaments with AMS successfully" notification

jira: none
Change-Id: I1fac8e617eff8553e1c0a43c687f736beb3f3b19
(cherry picked from commit fca8946145b71c85a9cd11804c7e955f2d0df924)
This commit is contained in:
zhou.xu
2025-01-13 11:33:01 +08:00
committed by Noisyfox
parent 4a6b8c4146
commit 622d11cd17

View File

@@ -2626,6 +2626,7 @@ void Sidebar::load_ams_list(std::string const &device, MachineObject* obj)
void Sidebar::sync_ams_list()
{
wxBusyCursor cursor;
// Force load ams list
auto obj = wxGetApp().getDeviceManager()->get_selected_machine();
if (obj)
@@ -2749,6 +2750,10 @@ void Sidebar::sync_ams_list()
}
}
Layout();
NotificationManager *notify_manager = p->plater->get_notification_manager();
std::string info_text = _u8L("Sync filaments with AMS successfully.");
notify_manager->bbl_show_seqprintinfo_notification(info_text);
}
void Sidebar::show_SEMM_buttons(bool bshow)