mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 12:26:58 +03:00
fix(translations): do not reset user language if translations index is missing
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
49aef77f3f
commit
d59b4b0ad7
2 changed files with 8 additions and 12 deletions
|
|
@ -1018,12 +1018,9 @@ Application::Application(int& argc, char** argv) : QApplication(argc, argv)
|
|||
// load translations
|
||||
{
|
||||
m_translations.reset(new TranslationsModel("translations"));
|
||||
auto bcp47Name = m_settings->get("Language").toString();
|
||||
m_translations->selectLanguage(bcp47Name);
|
||||
qInfo() << "Your language is" << bcp47Name;
|
||||
qInfo() << "<> Translations loaded.";
|
||||
|
||||
m_translations->downloadIndex();
|
||||
qInfo() << "Your language is" << m_translations->selectedLanguage();
|
||||
qInfo() << "<> Translations loaded.";
|
||||
}
|
||||
|
||||
// FIXME: what to do with these?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue