From 8b839f46b2227f64105e051404a7b31f9226e034 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 24 Jun 2021 11:19:27 +0400 Subject: [PATCH] Fix crash report window scale --- Telegram/SourceFiles/core/sandbox.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index e5081f85f..a4a47e8fe 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -183,8 +183,6 @@ void Sandbox::launchApplication() { } void Sandbox::setupScreenScale() { - Ui::DisableCustomScaling(); - const auto dpi = Sandbox::primaryScreen()->logicalDotsPerInch(); LOG(("Primary screen DPI: %1").arg(dpi)); if (dpi <= 108) { @@ -315,6 +313,7 @@ void Sandbox::singleInstanceChecked() { Logs::multipleInstances(); } + Ui::DisableCustomScaling(); refreshGlobalProxy(); if (!Logs::started() || (!cManyInstance() && !Logs::instanceChecked())) { new NotStartedWindow();