diff --git a/src/widgets/BaseWindow.cpp b/src/widgets/BaseWindow.cpp index a4360aa2f..0a7f463f0 100644 --- a/src/widgets/BaseWindow.cpp +++ b/src/widgets/BaseWindow.cpp @@ -64,6 +64,8 @@ BaseWindow::BaseWindow(QWidget *parent, Flags _flags) this->updateScale(); CreateWindowShortcut(this, "CTRL+0", [] { getApp()->settings->uiScale.setValue(0); }); + + // QTimer::this->scaleChangedEvent(this->getScale()); } float BaseWindow::getScale() const @@ -552,6 +554,8 @@ bool BaseWindow::handleSHOWWINDOW(MSG *msg) DwmExtendFrameIntoClientArea(HWND(this->winId()), &shadow); } + this->calcButtonsSizes(); + return true; #endif