From 1064729e1a8746bcf98005b525388beff2f1ccb9 Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 4 Jul 2018 10:37:53 +0200 Subject: [PATCH] Fixed issue with the window frame --- src/widgets/BaseWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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