mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
RegisterBundledResources only on macOS.
This commit is contained in:
parent
a3e3bcd46d
commit
f204b9fca0
2 changed files with 3 additions and 3 deletions
|
@ -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>();
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue