main.cpp: Removed unnecessary variable

This commit is contained in:
kleidis 2024-08-31 09:20:43 +02:00 committed by OpenSauce
parent 2036a5666e
commit d78daa8988

View File

@ -3415,9 +3415,8 @@ void GMainWindow::LoadTranslation() {
bool loaded; bool loaded;
if (UISettings::values.language.isEmpty()) { if (UISettings::values.language.isEmpty()) {
// Use the system's default locale // Use the system's default locale
QLocale defaultLocale = QLocale::system(); loaded = translator.load(QLocale::system(), {}, {}, QStringLiteral(":/languages/"));
loaded = translator.load(defaultLocale, {}, {}, QStringLiteral(":/languages/"));
} else { } else {
// Otherwise load from the specified file // Otherwise load from the specified file
loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/")); loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));