RegisterBundledResources only on macOS.

This commit is contained in:
John Preston 2021-10-29 17:19:39 +04:00
parent a3e3bcd46d
commit f204b9fca0
2 changed files with 3 additions and 3 deletions

View File

@ -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<Core::UpdateChecker>();
}

View File

@ -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) {