Send a NewNotification message when a new notification has been created.
This commit is contained in:
parent
2cfd22c856
commit
ac5a04ee9d
4
main.cpp
4
main.cpp
|
@ -589,6 +589,10 @@ public:
|
||||||
if (notification_idx >= notification_messages.size()/2) {
|
if (notification_idx >= notification_messages.size()/2) {
|
||||||
notification_idx = 0;
|
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
|
// can't use SDL_PollEvent, as those are fed to lvgl
|
||||||
|
|
Loading…
Reference in New Issue
Block a user