mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-01-07 15:48:12 +01:00
main.cpp: Removed unnecessary variable
This commit is contained in:
parent
2036a5666e
commit
d78daa8988
@ -3415,9 +3415,8 @@ void GMainWindow::LoadTranslation() {
|
||||
bool loaded;
|
||||
|
||||
if (UISettings::values.language.isEmpty()) {
|
||||
// Use the system's default locale
|
||||
QLocale defaultLocale = QLocale::system();
|
||||
loaded = translator.load(defaultLocale, {}, {}, QStringLiteral(":/languages/"));
|
||||
// Use the system's default locale
|
||||
loaded = translator.load(QLocale::system(), {}, {}, QStringLiteral(":/languages/"));
|
||||
} else {
|
||||
// Otherwise load from the specified file
|
||||
loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));
|
||||
|
Loading…
Reference in New Issue
Block a user