mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
ENH:add "Sync filaments with AMS successfully" notification
jira: none Change-Id: I1fac8e617eff8553e1c0a43c687f736beb3f3b19 (cherry picked from commit fca8946145b71c85a9cd11804c7e955f2d0df924)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user