ENH:add "Sync filaments with AMS successfully" notification
jira: none Change-Id: I1fac8e617eff8553e1c0a43c687f736beb3f3b19
This commit is contained in:
parent
7230d02450
commit
fca8946145
|
@ -2755,6 +2755,7 @@ void Sidebar::load_ams_list(std::string const &device, MachineObject* obj)
|
||||||
|
|
||||||
void Sidebar::sync_ams_list()
|
void Sidebar::sync_ams_list()
|
||||||
{
|
{
|
||||||
|
wxBusyCursor cursor;
|
||||||
// Force load ams list
|
// Force load ams list
|
||||||
auto obj = wxGetApp().getDeviceManager()->get_selected_machine();
|
auto obj = wxGetApp().getDeviceManager()->get_selected_machine();
|
||||||
if (obj)
|
if (obj)
|
||||||
|
@ -2878,6 +2879,10 @@ void Sidebar::sync_ams_list()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Layout();
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
ObjectList* Sidebar::obj_list()
|
ObjectList* Sidebar::obj_list()
|
||||||
|
|
Loading…
Reference in New Issue