load localization early

This commit is contained in:
Martin Rotter 2023-08-11 08:36:23 +02:00
parent aed4ba6639
commit 1bbb6d9fe9
2 changed files with 4 additions and 3 deletions

View File

@ -93,12 +93,15 @@ Application::Application(const QString& id, int& argc, char** argv, const QStrin
}
#endif
m_localization = new Localization(this);
m_localization->loadActiveLanguage();
m_nodejs = new NodeJs(m_settings, this);
m_workHorsePool = new QThreadPool(this);
m_webFactory = new WebFactory(this);
m_system = new SystemFactory(this);
m_skins = new SkinFactory(this);
m_localization = new Localization(this);
m_icons = new IconFactory(this);
m_database = new DatabaseFactory(this);
m_downloadManager = nullptr;

View File

@ -76,8 +76,6 @@ int main(int argc, char* argv[]) {
return EXIT_FAILURE;
}
// Load localization and setup locale before any widget is constructed.
qApp->localization()->loadActiveLanguage();
qApp->setFeedReader(new FeedReader(&application));
// Register needed metatypes.