Demana confirmació per a canviar el idioma amb les tecles ràpides

Demana confirmació per reiniciar
This commit is contained in:
2025-03-10 21:22:32 +01:00
parent 79b2917112
commit 9c1b3c45b0
11 changed files with 92 additions and 38 deletions

View File

@@ -41,10 +41,10 @@ namespace lang
return texts.at(index);
}
// Cambia el idioma seleccionado al siguiente idioma disponible
Code change(Code current_lang)
// Obtiene el codigo del idioma del siguiente idioma
Code getNextLangCode(Code lang)
{
auto index = static_cast<int>(current_lang);
auto index = static_cast<int>(lang);
index = (index + 1) % 3;
return static_cast<Code>(index);
}