Send a NewNotification message when a new notification has been created.

This commit is contained in:
Tomas Groth 2022-09-20 23:12:20 +02:00 committed by Reinhold Gschweicher
parent 2cfd22c856
commit ac5a04ee9d

View File

@ -589,6 +589,10 @@ public:
if (notification_idx >= notification_messages.size()/2) {
notification_idx = 0;
}
if (settingsController.GetNotificationStatus() == Pinetime::Controllers::Settings::Notification::On)
{
displayApp.PushMessage(Pinetime::Applications::Display::Messages::NewNotification);
}
}
// can't use SDL_PollEvent, as those are fed to lvgl