1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-27 10:35:51 +00:00

request frame with delay when new notification pushed

This commit is contained in:
David Kocik
2021-01-07 13:33:05 +01:00
parent c61a6289c5
commit df59f9497a
+2 -2
View File
@@ -1233,11 +1233,11 @@ bool NotificationManager::push_notification_data(std::unique_ptr<NotificationMan
if (this->activate_existing(notification.get())) { if (this->activate_existing(notification.get())) {
m_pop_notifications.back()->update(notification->get_data()); m_pop_notifications.back()->update(notification->get_data());
canvas.request_extra_frame(); canvas.request_extra_frame_delayed(33);
return false; return false;
} else { } else {
m_pop_notifications.emplace_back(std::move(notification)); m_pop_notifications.emplace_back(std::move(notification));
canvas.request_extra_frame(); canvas.request_extra_frame_delayed(33);
return true; return true;
} }
} }