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:
parent
cf16472dd0
commit
192a56ee15
@ -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 = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user