animacio de tancar el menu

This commit is contained in:
2026-04-16 20:14:35 +02:00
parent e0f9b60f22
commit 5956d874c3
4 changed files with 52 additions and 13 deletions

View File

@@ -361,8 +361,8 @@ namespace Overlay {
std::remove_if(notifications_.begin(), notifications_.end(), [](const Notification& n) { return n.status == Status::FINISHED; }),
notifications_.end());
// Menú flotant per damunt de tot
if (Menu::isOpen()) {
// Menú flotant per damunt de tot (isVisible inclou l'animació de tancament)
if (Menu::isVisible()) {
Menu::render(pixel_data);
}
}