2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Fix invisible passcode field.

Regression was introduced in fd8ae60dc.
This commit is contained in:
John Preston
2020-02-11 13:01:08 +04:00
parent 5171c0bd77
commit bcd0fe38f0
6 changed files with 12 additions and 23 deletions

View File

@@ -435,15 +435,6 @@ void MainWindow::initSize() {
}
DEBUG_LOG(("Window Pos: Setting first %1, %2, %3, %4").arg(geometry.x()).arg(geometry.y()).arg(geometry.width()).arg(geometry.height()));
setGeometry(geometry);
if (geometryScreen != primaryScreen) {
// In case screen DPI changed we show the window now,
// so that when we call setGeometry() once again after
// make_unique<Media::View::OverlayWidget> it already
// has adjusted by dpi geometry saved in QWidget.
//
// Somehow should fix https://github.com/telegramdesktop/tdesktop/issues/6804
show();
}
}
void MainWindow::positionUpdated() {