From 622d11cd1756cd07c4b1cd5f567e012f8e3306f5 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Mon, 13 Jan 2025 11:33:01 +0800 Subject: [PATCH] ENH:add "Sync filaments with AMS successfully" notification jira: none Change-Id: I1fac8e617eff8553e1c0a43c687f736beb3f3b19 (cherry picked from commit fca8946145b71c85a9cd11804c7e955f2d0df924) --- src/slic3r/GUI/Plater.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 9636df60fa..5f05756d8d 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -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)