2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Correctly minimize window.

Fixes #6932.
This commit is contained in:
John Preston
2020-01-02 14:57:36 +03:00
parent 4eeac7dc18
commit 322367c1b1
5 changed files with 27 additions and 13 deletions

View File

@@ -102,7 +102,7 @@ void Controller::minimize() {
if (Global::WorkMode().value() == dbiwmTrayOnly) {
_widget.minimizeToTray();
} else {
_widget.setWindowState(Qt::WindowMinimized);
_widget.setWindowState(_widget.windowState() | Qt::WindowMinimized);
}
}