FIX: error message not closing

Jira: STUDIO-14424
Change-Id: I188b720b03440ac88169e54b5bb95fdd070bc236
(cherry picked from commit 549b66f1edd7410dcb997c43b4de55dabc65e3dd)
This commit is contained in:
weiting.ji
2025-09-04 16:47:28 +08:00
committed by Noisyfox
parent 6fcb6be65f
commit c2938827ac

View File

@@ -7216,6 +7216,8 @@ unsigned int Plater::priv::update_background_process(bool force_validation, bool
this->partplate_list.get_curr_plate()->update_apply_result_invalid(false);
notification_manager->set_all_slicing_errors_gray(true);
notification_manager->close_notification_of_type(NotificationType::ValidateError);
notification_manager->bbl_close_3mf_warn_notification();
if (invalidated != Print::APPLY_STATUS_UNCHANGED && background_processing_enabled())
return_state |= UPDATE_BACKGROUND_PROCESS_RESTART;
@@ -16496,6 +16498,7 @@ void Plater::validate_current_plate(bool& model_fits, bool& validate_error)
p->partplate_list.get_curr_plate()->update_apply_result_invalid(false);
p->notification_manager->set_all_slicing_errors_gray(true);
p->notification_manager->close_notification_of_type(NotificationType::ValidateError);
p->notification_manager->bbl_close_3mf_warn_notification();
// Pass a warning from validation and either show a notification,
// or hide the old one.