New: refeta la lògica d'eixir o apagar el sistema

This commit is contained in:
2025-06-12 20:25:59 +02:00
parent 6c707fa178
commit 99ffe9f7a7
6 changed files with 22 additions and 52 deletions

View File

@@ -263,13 +263,13 @@ void ServiceMenu::selectOption()
else if (display_options_.at(selected_)->caption == lang::getText("[SERVICE_MENU] QUIT"))
{
section::name = section::Name::QUIT;
section::options = section::Options::QUIT_WITH_KEYBOARD;
section::options = section::Options::NONE;
return;
}
else if (display_options_.at(selected_)->caption == lang::getText("[SERVICE_MENU] SHUTDOWN"))
{
section::name = section::Name::QUIT;
section::options = section::Options::QUIT_WITH_CONTROLLER;
section::options = section::Options::SHUTDOWN;
return;
}
return;