fixed qml warnings and hindi language warnings (#805)

This commit is contained in:
Nethius 2024-07-11 16:36:24 +07:00 committed by GitHub
parent c3eddc92bd
commit acf7fa261a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 37 additions and 107 deletions

View file

@ -92,9 +92,9 @@ int LanguageModel::getCurrentLanguageIndex()
int LanguageModel::getLineHeightAppend()
{
int langIndex = getCurrentLanguageIndex();
switch (langIndex) {
case 5: return 10; break; // Burmese
auto language = static_cast<LanguageSettings::AvailableLanguageEnum>(getCurrentLanguageIndex());
switch (language) {
case LanguageSettings::AvailableLanguageEnum::Burmese: return 10; break;
default: return 0; break;
}
}