mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-02 02:07:54 +00:00
Make notification manager creation async
This commit is contained in:
@@ -1247,18 +1247,13 @@ void start() {
|
||||
}
|
||||
|
||||
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
if (!IsNotificationServiceActivatable()) {
|
||||
NSWInstance = std::make_unique<
|
||||
internal::NotificationServiceWatcher>();
|
||||
}
|
||||
NSWInstance = std::make_unique<internal::NotificationServiceWatcher>();
|
||||
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
}
|
||||
|
||||
void finish() {
|
||||
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
if (NSWInstance) {
|
||||
NSWInstance = nullptr;
|
||||
}
|
||||
NSWInstance = nullptr;
|
||||
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user