Fix notifications disappearing after a long UI lock.

This commit is contained in:
Bartosz Taudul 2021-05-15 14:21:45 +02:00
parent fe71ae3272
commit ab830962c8
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1365,7 +1365,7 @@ void View::DrawNotificationArea()
}
else if( m_notificationTime > 0 )
{
m_notificationTime -= io.DeltaTime;
m_notificationTime -= std::min( io.DeltaTime, 0.25f );
ImGui::SameLine();
TextDisabledUnformatted( m_notificationText.c_str() );
}