CommonHostInterface: Fix OSD messages not clearing on shutdown

This commit is contained in:
Connor McLaughlin
2021-05-01 13:37:29 +10:00
parent f39a5dcf5d
commit 44f29da40f
3 changed files with 15 additions and 2 deletions

View File

@ -1500,6 +1500,11 @@ void AddNotification(float duration, std::string title, std::string text, std::s
s_notifications.push_back(std::move(notif));
}
void ClearNotifications()
{
s_notifications.clear();
}
void DrawNotifications(ImVec2& position, float spacing)
{
if (s_notifications.empty())