FIX: thread of close BBLUserPresetExceedLimit notify

Change-Id: I9698134ba1cc91fc83eac441f900d68c4c4b556a
This commit is contained in:
chunmao.guo 2023-11-23 10:28:07 +08:00 committed by Lane.Wei
parent f4b062640d
commit ffb4326e8e
1 changed files with 3 additions and 1 deletions

View File

@ -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;