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