feat: add a separate setting for selecting 'text language' when ALL_LANGS is set (#6960)

This commit is contained in:
philmoz
2026-01-08 12:34:22 +10:00
committed by GitHub
parent a3ccc87a88
commit 4f90a5e426
60 changed files with 352 additions and 95 deletions
+4 -2
View File
@@ -233,12 +233,14 @@ void GeneralSettings::init()
internalModule = g.profile[g.sessionId()].defaultInternalModule();
QString lang = getCurrentFirmware()->getLanguage();
if (lang.size() > 1)
if (lang.size() > 1) {
memcpy(ttsLanguage, lang.toLatin1().data(), 2);
else {
} else {
ttsLanguage[0] = 'e';
ttsLanguage[1] = 'n';
}
ttsLanguage[2] = 0;
memcpy(uiLanguage, ttsLanguage, 3);
stickDeadZone = (IS_FLYSKY_NV14(board) || IS_FAMILY_PL18(board)) ? 2 : 0;
setDefaultFavorites();