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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user