mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-06 17:45:11 +00:00
Make notification manager creation async
This commit is contained in:
@@ -33,13 +33,13 @@ bool Enforced() {
|
||||
return IsWayland();
|
||||
}
|
||||
|
||||
std::unique_ptr<Window::Notifications::Manager> Create(
|
||||
Window::Notifications::System *system) {
|
||||
void Create(Window::Notifications::System *system) {
|
||||
if (Enforced()) {
|
||||
return std::make_unique<Window::Notifications::DummyManager>(system);
|
||||
using DummyManager = Window::Notifications::DummyManager;
|
||||
system->setManager(std::make_unique<DummyManager>(system));
|
||||
} else {
|
||||
system->setManager(nullptr);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace Notifications
|
||||
|
Reference in New Issue
Block a user