Retranslate playtime text immediately when language is changed
This commit is contained in:
parent
ea9d61c21c
commit
5171d99fe5
@ -831,7 +831,7 @@ public:
|
|||||||
QMetaObject::connectSlotsByName(MainWindow);
|
QMetaObject::connectSlotsByName(MainWindow);
|
||||||
} // setupUi
|
} // setupUi
|
||||||
|
|
||||||
void retranslateUi(QMainWindow *MainWindow)
|
void retranslateUi(MainWindow *MainWindow)
|
||||||
{
|
{
|
||||||
QString winTitle = tr("%1 - Version %2", "Launcher - Version X").arg(BuildConfig.LAUNCHER_DISPLAYNAME, BuildConfig.printableVersionString());
|
QString winTitle = tr("%1 - Version %2", "Launcher - Version X").arg(BuildConfig.LAUNCHER_DISPLAYNAME, BuildConfig.printableVersionString());
|
||||||
MainWindow->setWindowTitle(winTitle);
|
MainWindow->setWindowTitle(winTitle);
|
||||||
@ -851,6 +851,12 @@ public:
|
|||||||
// submenu buttons
|
// submenu buttons
|
||||||
foldersMenuButton->setText(tr("Folders"));
|
foldersMenuButton->setText(tr("Folders"));
|
||||||
helpMenuButton->setText(tr("Help"));
|
helpMenuButton->setText(tr("Help"));
|
||||||
|
|
||||||
|
// playtime counter
|
||||||
|
if (MainWindow->m_statusCenter)
|
||||||
|
{
|
||||||
|
MainWindow->updateStatusCenter();
|
||||||
|
}
|
||||||
} // retranslateUi
|
} // retranslateUi
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user