2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +00:00

Remove app module. Support delayed quit by Cmd+Q on macOS.

This commit is contained in:
John Preston
2022-01-27 15:48:51 +03:00
parent b8f1cebeb6
commit 28f2c213f7
38 changed files with 319 additions and 350 deletions

View File

@@ -798,7 +798,7 @@ void MainWindow::toggleDisplayNotifyFromTray() {
void MainWindow::closeEvent(QCloseEvent *e) {
if (Core::Sandbox::Instance().isSavingSession()) {
e->accept();
App::quit();
Core::Quit();
} else {
e->ignore();
const auto hasAuth = [&] {
@@ -813,7 +813,7 @@ void MainWindow::closeEvent(QCloseEvent *e) {
return false;
}();
if (!hasAuth || !hideNoQuit()) {
App::quit();
Core::Quit();
}
}
}