2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

version 0.8.20.dev prepared (some fixes)

This commit is contained in:
John Preston
2015-06-02 14:22:00 +03:00
parent 30be7af3e3
commit e7b94f3d3a
15 changed files with 118 additions and 69 deletions

View File

@@ -1061,10 +1061,6 @@ void PsMainWindow::psInitSize() {
setMinimumHeight(st::wndMinHeight);
TWindowPos pos(cWindowPos());
if (cDebug()) { // temp while design
pos.w = st::wndDefWidth;
pos.h = st::wndDefHeight;
}
QRect avail(App::app() ? App::app()->desktop()->availableGeometry() : QDesktopWidget().availableGeometry());
bool maximized = false;
QRect geom(avail.x() + (avail.width() - st::wndDefWidth) / 2, avail.y() + (avail.height() - st::wndDefHeight) / 2, st::wndDefWidth, st::wndDefHeight);