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