Optimizado el renderizado de notificaciones

This commit is contained in:
2022-11-18 19:26:31 +01:00
parent 74d5bbddaa
commit ea994bcc2f
6 changed files with 42 additions and 40 deletions

View File

@@ -140,4 +140,15 @@ void Notify::showText(std::string text)
// Añade la notificación a la lista
notifications.push_back(n);
}
// Indica si hay notificaciones activas
bool Notify::active()
{
if ((int)notifications.size() > 0)
{
return true;
}
return false;
}