2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix restart before exec on macOS.

This commit is contained in:
John Preston
2021-11-08 17:33:18 +04:00
parent 6eaeb306d6
commit 9b2d080e8e
3 changed files with 20 additions and 2 deletions

View File

@@ -1079,7 +1079,7 @@ void Application::QuitAttempt() {
if (!IsAppLaunched()
|| Sandbox::Instance().isSavingSession()
|| App().readyToQuit()) {
QApplication::quit();
Sandbox::QuitWhenStarted();
}
}
@@ -1115,7 +1115,7 @@ void Application::quitPreventFinished() {
void Application::quitDelayed() {
if (!_private->quitTimer.isActive()) {
_private->quitTimer.setCallback([] { QApplication::quit(); });
_private->quitTimer.setCallback([] { Sandbox::QuitWhenStarted(); });
_private->quitTimer.callOnce(kQuitPreventTimeoutMs);
}
}