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

main
Tomas Groth 2022-09-20 23:12:20 +07:00 committed by Reinhold Gschweicher
parent 2cfd22c856
commit ac5a04ee9d
1 changed files with 4 additions and 0 deletions

@ -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