2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Fix race condition between GApplication and GNotification

This commit is contained in:
Ilya Fedin
2022-11-26 02:36:28 +04:00
committed by John Preston
parent 51cd07945b
commit d6ed23b3dd
2 changed files with 22 additions and 2 deletions

View File

@@ -291,6 +291,11 @@ void LaunchGApplication() {
nullptr)));
app->signal_startup().connect([=] {
// GNotification
InvokeQueued(qApp, [] {
Core::App().notifications().createManager();
});
QEventLoop loop;
loop.exec(QEventLoop::ApplicationExec);
app->quit();