mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Replace MetaLang with codegen_lang.
This commit is contained in:
@@ -386,7 +386,8 @@ void Messenger::loadLanguage() {
|
||||
LOG(("Lang load warnings: %1").arg(loader.warnings()));
|
||||
}
|
||||
}
|
||||
QCoreApplication::instance()->installTranslator(_translator = new Translator());
|
||||
_translator = std::make_unique<Translator>();
|
||||
QCoreApplication::instance()->installTranslator(_translator.get());
|
||||
}
|
||||
|
||||
void Messenger::startLocalStorage() {
|
||||
@@ -751,7 +752,6 @@ Messenger::~Messenger() {
|
||||
deinitLocationManager();
|
||||
|
||||
delete base::take(_uploader);
|
||||
delete base::take(_translator);
|
||||
|
||||
Window::Theme::Unload();
|
||||
|
||||
|
Reference in New Issue
Block a user