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;
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/"));