fix: don't attempt to scale windows opted out of scaling (#5400)

This commit is contained in:
nerix
2024-05-18 12:34:36 +02:00
committed by GitHub
parent 614a1c469f
commit 3ed1c0f7a4
4 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ void SettingsDialog::filterElements(const QString &text)
auto *item = this->ui_.tabContainer->itemAt(i);
if (auto *x = dynamic_cast<QSpacerItem *>(item); x)
{
x->changeSize(10, shouldShowSpace ? int(16 * this->scale()) : 0);
x->changeSize(10, shouldShowSpace ? 16 : 0);
shouldShowSpace = false;
}
else if (item->widget())