Move JSON settings start before platform start
This commit is contained in:
parent
4e83d8b315
commit
3acdd673dc
2 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/sandbox.h"
|
||||
#include "core/local_url_handlers.h"
|
||||
#include "core/launcher.h"
|
||||
#include "kotato/json_settings.h"
|
||||
#include "core/ui_integration.h"
|
||||
#include "core/core_settings.h"
|
||||
#include "chat_helpers/emoji_keywords.h"
|
||||
|
|
@ -198,12 +197,10 @@ Application::~Application() {
|
|||
Global::finish();
|
||||
ThirdParty::finish();
|
||||
|
||||
Kotato::JsonSettings::Finish();
|
||||
Instance = nullptr;
|
||||
}
|
||||
|
||||
void Application::run() {
|
||||
Kotato::JsonSettings::Start();
|
||||
style::internal::StartFonts();
|
||||
|
||||
ThirdParty::start();
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/update_checker.h"
|
||||
#include "core/sandbox.h"
|
||||
#include "base/concurrent_timer.h"
|
||||
#include "kotato/json_settings.h"
|
||||
|
||||
namespace Core {
|
||||
namespace {
|
||||
|
|
@ -330,6 +331,7 @@ int Launcher::exec() {
|
|||
|
||||
// Must be started before Platform is started.
|
||||
Logs::start(this);
|
||||
Kotato::JsonSettings::Start();
|
||||
|
||||
// Must be started before Sandbox is created.
|
||||
Platform::start();
|
||||
|
|
@ -359,6 +361,7 @@ int Launcher::exec() {
|
|||
|
||||
CrashReports::Finish();
|
||||
Platform::finish();
|
||||
Kotato::JsonSettings::Finish();
|
||||
Logs::finish();
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue