Fix crash report window scale

This commit is contained in:
Ilya Fedin 2021-06-24 11:19:27 +04:00 committed by John Preston
parent c1067d8fe1
commit 8b839f46b2

View File

@ -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();