FIX: sync user preset notify crash on exit

Change-Id: I88f5dbcbd487293ea847ea6092efb61744399541
Jira: STUDIO-5413
This commit is contained in:
chunmao.guo 2023-12-01 10:09:49 +08:00 committed by Lane.Wei
parent f6b2305ae3
commit e866c8321c
1 changed files with 2 additions and 1 deletions

View File

@ -4734,7 +4734,8 @@ void GUI_App::start_sync_user_preset(bool with_progress_dlg)
if (total_count == 0) {
CallAfter([this] {
plater()->get_notification_manager()->close_notification_of_type(NotificationType::BBLUserPresetExceedLimit);
if (!m_is_closing)
plater()->get_notification_manager()->close_notification_of_type(NotificationType::BBLUserPresetExceedLimit);
});
}