2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Implement close to taskbar option

This commit is contained in:
Ilya Fedin
2021-09-13 03:13:13 +04:00
committed by John Preston
parent ce256161f1
commit e92ae40ecb
11 changed files with 82 additions and 7 deletions

View File

@@ -213,8 +213,13 @@ bool MainWindow::hideNoQuit() {
}
return true;
}
} else if (Platform::IsMac()) {
closeWithoutDestroy();
}
if (Platform::IsMac() || Core::App().settings().closeToTaskbar()) {
if (Platform::IsMac()) {
closeWithoutDestroy();
} else {
setWindowState(window()->windowState() | Qt::WindowMinimized);
}
controller().updateIsActiveBlur();
updateGlobalMenu();
if (const auto controller = sessionController()) {