remove simplify suggestion function

This commit is contained in:
David Kocik 2021-10-01 15:45:53 +02:00
parent c7d6a95cb3
commit 1edbdcfecf
2 changed files with 10 additions and 0 deletions

View file

@ -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)
{
close_notification_of_type(NotificationType::ExportFinished);