Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kocik <kocikdav@gmail.com>2021-03-26 11:18:07 +0300
committerDavid Kocik <kocikdav@gmail.com>2021-04-20 10:18:50 +0300
commitc140974bf40b34345191a79d85410ea62898c2b7 (patch)
treee4216cd6b8c28b63f2fa46c5285e7e9de4e3f41c /src/slic3r/GUI/NotificationManager.cpp
parent9118de4e3ce0d14451eadf816117ddc333a4327c (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.cpp8
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;