diff options
author | David Kocik <kocikdav@gmail.com> | 2021-03-26 11:18:07 +0300 |
---|---|---|
committer | David Kocik <kocikdav@gmail.com> | 2021-04-20 10:18:50 +0300 |
commit | c140974bf40b34345191a79d85410ea62898c2b7 (patch) | |
tree | e4216cd6b8c28b63f2fa46c5285e7e9de4e3f41c /src/slic3r/GUI/NotificationManager.cpp | |
parent | 9118de4e3ce0d14451eadf816117ddc333a4327c (diff) |
Changed ToolpathOuside error notification from plater to slicing error notification type so it is grayed out correctly
Diffstat (limited to 'src/slic3r/GUI/NotificationManager.cpp')
-rw-r--r-- | src/slic3r/GUI/NotificationManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index 6c5918fde..144c89a1e 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -1072,6 +1072,14 @@ void NotificationManager::close_slicing_errors_and_warnings() } } } +void NotificationManager::close_slicing_error_notification(const std::string& text) +{ + for (std::unique_ptr<PopNotification>& notification : m_pop_notifications) { + if (notification->get_type() == NotificationType::SlicingError && notification->compare_text(_u8L("ERROR:") + "\n" + text)) { + notification->close(); + } + } +} void NotificationManager::push_slicing_complete_notification(int timestamp, bool large) { std::string hypertext; |