ENH:Give a warning when the flushing value changes or is zero.

Jira: STUDIO-13175
Change-Id: Ibc5a912464322d2bc40514c310dfc4859bbd79b3
(cherry picked from commit 3fa4b149a0a529d8a2b1c6b6b80415161c13b2c3)
(cherry picked from commit f6c03caaa744b774ffc9d6150b3691d232ced472)
This commit is contained in:
weizhen.xie
2025-07-24 20:16:33 +08:00
committed by Noisyfox
parent e377d96e37
commit 40f3e4b91f
10 changed files with 185 additions and 30 deletions

View File

@@ -2002,6 +2002,19 @@ void NotificationManager::close_plater_warning_notification(const std::string& t
}
}
void NotificationManager::push_flushing_volume_error_notification(NotificationType type, NotificationLevel level, const std::string &text, const std::string &hypertext, std::function<bool(wxEvtHandler *)> callback)
{
set_all_slicing_errors_gray(false);
std::string prefix_msg = level == NotificationLevel::WarningNotificationLevel ? _u8L("Warning:") : _u8L("Error:");
push_notification_data({type, level, 0, prefix_msg + "\n" + text, hypertext, callback}, 0);
}
void NotificationManager::close_flushing_volume_error_notification(NotificationType type, NotificationLevel level)
{
for (std::unique_ptr<PopNotification> &notification : m_pop_notifications) {
if (notification->get_type() == type && notification->get_data().level == level) { notification->close(); }
}
}
void NotificationManager::set_all_slicing_errors_gray(bool g)
{