mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-11 00:41:48 +08:00
remove simplify suggestion function
This commit is contained in:
parent
c7d6a95cb3
commit
1edbdcfecf
@ -1644,6 +1644,15 @@ void NotificationManager::remove_simplify_suggestion_of_released_objects(const s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NotificationManager::remove_simplify_suggestion_with_id(const ObjectID oid)
|
||||||
|
{
|
||||||
|
for (std::unique_ptr<PopNotification>& notification : m_pop_notifications)
|
||||||
|
if (notification->get_type() == NotificationType::SimplifySuggestion) {
|
||||||
|
if (static_cast<ObjectIDNotification*>(notification.get())->object_id == oid)
|
||||||
|
notification->close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void NotificationManager::push_exporting_finished_notification(const std::string& path, const std::string& dir_path, bool on_removable)
|
void NotificationManager::push_exporting_finished_notification(const std::string& path, const std::string& dir_path, bool on_removable)
|
||||||
{
|
{
|
||||||
close_notification_of_type(NotificationType::ExportFinished);
|
close_notification_of_type(NotificationType::ExportFinished);
|
||||||
|
@ -174,6 +174,7 @@ public:
|
|||||||
// Close object warnings, whose ObjectID is not in the list.
|
// Close object warnings, whose ObjectID is not in the list.
|
||||||
// living_oids is expected to be sorted.
|
// living_oids is expected to be sorted.
|
||||||
void remove_simplify_suggestion_of_released_objects(const std::vector<ObjectID>& living_oids);
|
void remove_simplify_suggestion_of_released_objects(const std::vector<ObjectID>& living_oids);
|
||||||
|
void remove_simplify_suggestion_with_id(const ObjectID oid);
|
||||||
// Called when the side bar changes its visibility, as the "slicing complete" notification supplements
|
// Called when the side bar changes its visibility, as the "slicing complete" notification supplements
|
||||||
// the "slicing info" normally shown at the side bar.
|
// the "slicing info" normally shown at the side bar.
|
||||||
void set_sidebar_collapsed(bool collapsed);
|
void set_sidebar_collapsed(bool collapsed);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user