mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +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