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

Moved WorkMode global variable from facades to core settings.

This commit is contained in:
23rd
2021-05-27 22:45:52 +03:00
parent 16db8468fa
commit 5334372671
13 changed files with 64 additions and 36 deletions

View File

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