mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
init language before instantiating qml components for combobox translations
This commit is contained in:
parent
42a6a7a3b7
commit
b830dff724
2 changed files with 5 additions and 5 deletions
|
|
@ -413,6 +413,11 @@ void App::init() {
|
|||
QThread::msleep(100);
|
||||
}
|
||||
|
||||
// Init locale.
|
||||
mTranslatorCore = new DefaultTranslatorCore(this);
|
||||
mDefaultTranslatorCore = new DefaultTranslatorCore(this);
|
||||
initLocale();
|
||||
|
||||
lInfo() << log().arg("Display server : %1").arg(platformName());
|
||||
}
|
||||
|
||||
|
|
@ -518,10 +523,6 @@ void App::initCore() {
|
|||
setAutoStart(settings->getAutoStart());
|
||||
setQuitOnLastWindowClosed(settings->getExitOnClose());
|
||||
}
|
||||
// Init locale.
|
||||
mTranslatorCore = new DefaultTranslatorCore(this);
|
||||
mDefaultTranslatorCore = new DefaultTranslatorCore(this);
|
||||
initLocale();
|
||||
const QUrl url("qrc:/qt/qml/Linphone/view/Page/Window/Main/MainWindow.qml");
|
||||
QObject::connect(
|
||||
mEngine, &QQmlApplicationEngine::objectCreated, this,
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@ void CoreModel::start() {
|
|||
linphone::Factory::get()->createCore(Utils::appStringToCoreString(Paths::getConfigFilePath(mConfigPath)),
|
||||
Utils::appStringToCoreString(Paths::getFactoryConfigFilePath()), nullptr);
|
||||
setMonitor(mCore);
|
||||
setPathsAfterCreation();
|
||||
mCore->enableRecordAware(true);
|
||||
mCore->setVideoDisplayFilter("MSQOGL");
|
||||
mCore->usePreviewWindow(true);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue