notifications: plater warning not visible in preview

This commit is contained in:
David Kocik
2020-08-25 09:55:29 +02:00
parent 142d3ec325
commit 5353338641
3 changed files with 16 additions and 1 deletions

View File

@@ -909,6 +909,14 @@ bool NotificationManager::find_older(NotificationManager::PopNotification* notif
return false;
}
void NotificationManager::set_in_preview(bool preview)
{
m_in_preview = preview;
for (PopNotification* notification : m_pop_notifications) {
if (notification->get_type() == NotificationType::PlaterWarning)
notification->hide(preview);
}
}
void NotificationManager::dpi_changed()
{