From fca8946145b71c85a9cd11804c7e955f2d0df924 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 --- 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 492a7f145..4a76e6d9b 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -2755,6 +2755,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) @@ -2878,6 +2879,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); } ObjectList* Sidebar::obj_list()