From ffb4326e8e6da371b1388483bbcc10ec841040b2 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Thu, 23 Nov 2023 10:28:07 +0800 Subject: [PATCH] FIX: thread of close BBLUserPresetExceedLimit notify Change-Id: I9698134ba1cc91fc83eac441f900d68c4c4b556a --- src/slic3r/GUI/GUI_App.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 69f34d945..7c78531ff 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -4727,7 +4727,9 @@ void GUI_App::start_sync_user_preset(bool with_progress_dlg) total_count += sync_count; if (total_count == 0) { - plater()->get_notification_manager()->close_notification_of_type(NotificationType::BBLUserPresetExceedLimit); + CallAfter([this] { + plater()->get_notification_manager()->close_notification_of_type(NotificationType::BBLUserPresetExceedLimit); + }); } unsigned int http_code = 200;