mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash report window scale
This commit is contained in:
parent
c1067d8fe1
commit
8b839f46b2
1 changed files with 1 additions and 2 deletions
|
@ -183,8 +183,6 @@ void Sandbox::launchApplication() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sandbox::setupScreenScale() {
|
void Sandbox::setupScreenScale() {
|
||||||
Ui::DisableCustomScaling();
|
|
||||||
|
|
||||||
const auto dpi = Sandbox::primaryScreen()->logicalDotsPerInch();
|
const auto dpi = Sandbox::primaryScreen()->logicalDotsPerInch();
|
||||||
LOG(("Primary screen DPI: %1").arg(dpi));
|
LOG(("Primary screen DPI: %1").arg(dpi));
|
||||||
if (dpi <= 108) {
|
if (dpi <= 108) {
|
||||||
|
@ -315,6 +313,7 @@ void Sandbox::singleInstanceChecked() {
|
||||||
Logs::multipleInstances();
|
Logs::multipleInstances();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Ui::DisableCustomScaling();
|
||||||
refreshGlobalProxy();
|
refreshGlobalProxy();
|
||||||
if (!Logs::started() || (!cManyInstance() && !Logs::instanceChecked())) {
|
if (!Logs::started() || (!cManyInstance() && !Logs::instanceChecked())) {
|
||||||
new NotStartedWindow();
|
new NotStartedWindow();
|
||||||
|
|
Loading…
Add table
Reference in a new issue