mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 16:58:07 +00:00
Fix race condition between GApplication and GNotification
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user