From f204b9fca0d3016ca02520133ddfe54b3d21e414 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 29 Oct 2021 17:19:39 +0400 Subject: [PATCH] RegisterBundledResources only on macOS. --- Telegram/SourceFiles/core/sandbox.cpp | 3 --- Telegram/SourceFiles/platform/mac/launcher_mac.mm | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index ac6409a418..1a4316cd6e 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -8,7 +8,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "core/sandbox.h" #include "base/platform/base_platform_info.h" -#include "base/base_file_utilities.h" #include "platform/platform_specific.h" #include "mainwidget.h" #include "mainwindow.h" @@ -94,8 +93,6 @@ Sandbox::Sandbox( } int Sandbox::start() { - base::RegisterBundledResources(u"Telegram.rcc"_q); - if (!Core::UpdaterDisabled()) { _updateChecker = std::make_unique(); } diff --git a/Telegram/SourceFiles/platform/mac/launcher_mac.mm b/Telegram/SourceFiles/platform/mac/launcher_mac.mm index 2f298ec4d6..95d15a8eff 100644 --- a/Telegram/SourceFiles/platform/mac/launcher_mac.mm +++ b/Telegram/SourceFiles/platform/mac/launcher_mac.mm @@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "core/crash_reports.h" #include "core/update_checker.h" +#include "base/base_file_utilities.h" #include "base/platform/base_platform_file_utilities.h" #include "base/platform/mac/base_utilities_mac.h" @@ -25,6 +26,8 @@ Launcher::Launcher(int argc, char *argv[]) void Launcher::initHook() { // macOS Retina display support is working fine, others are not. QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling, false); + + base::RegisterBundledResources(u"Telegram.rcc"_q); } bool Launcher::launchUpdater(UpdaterLaunch action) {