2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Fix build and working on macOS.

This commit is contained in:
John Preston
2020-06-19 21:13:43 +04:00
parent b49a8e6dc1
commit 3bb352e0e5
15 changed files with 83 additions and 52 deletions

View File

@@ -103,7 +103,6 @@ Application::Application(not_null<Launcher*> launcher)
, _langCloudManager(std::make_unique<Lang::CloudManager>(langpack()))
, _emojiKeywords(std::make_unique<ChatHelpers::EmojiKeywords>())
, _audio(std::make_unique<Media::Audio::Instance>())
, _notifications(std::make_unique<Window::Notifications::System>())
, _logo(Window::LoadLogo())
, _logoNoMargin(Window::LoadLogoNoMargin())
, _autoLockTimer([=] { checkAutoLock(); }) {
@@ -180,7 +179,10 @@ void Application::run() {
ThirdParty::start();
Global::start();
refreshGlobalProxy(); // Depends on Global::started().
refreshGlobalProxy(); // Depends on Global::start().
// Depends on OpenSSL on macOS, so on ThirdParty::start().
_notifications = std::make_unique<Window::Notifications::System>();
startLocalStorage();
ValidateScale();