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:
@@ -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