Retranslate playtime text immediately when language is changed

This commit is contained in:
Kenneth Chew 2022-05-08 23:42:37 -04:00
parent ea9d61c21c
commit 5171d99fe5
No known key found for this signature in database
GPG Key ID: F17D3E14A07739DA

View File

@ -831,7 +831,7 @@ public:
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
void retranslateUi(MainWindow *MainWindow)
{
QString winTitle = tr("%1 - Version %2", "Launcher - Version X").arg(BuildConfig.LAUNCHER_DISPLAYNAME, BuildConfig.printableVersionString());
MainWindow->setWindowTitle(winTitle);
@ -851,6 +851,12 @@ public:
// submenu buttons
foldersMenuButton->setText(tr("Folders"));
helpMenuButton->setText(tr("Help"));
// playtime counter
if (MainWindow->m_statusCenter)
{
MainWindow->updateStatusCenter();
}
} // retranslateUi
};