2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-22 10:17:10 +00:00

Shorter notifications proxy check for Linux notifications

This commit is contained in:
Ilya Fedin 2025-08-12 20:19:24 +00:00 committed by John Preston
parent cf16472dd0
commit 192a56ee15

View File

@ -263,15 +263,7 @@ void Create(Window::Notifications::System *system) {
res,
nullptr);
if (!proxy) {
ServiceRegistered = false;
CurrentServerInformation = {};
CurrentCapabilities = {};
managerSetter(nullptr);
return;
}
ServiceRegistered = bool(proxy.get_name_owner());
ServiceRegistered = proxy ? bool(proxy.get_name_owner()) : false;
if (!ServiceRegistered) {
CurrentServerInformation = {};
CurrentCapabilities = {};