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,
|
res,
|
||||||
nullptr);
|
nullptr);
|
||||||
|
|
||||||
if (!proxy) {
|
ServiceRegistered = proxy ? bool(proxy.get_name_owner()) : false;
|
||||||
ServiceRegistered = false;
|
|
||||||
CurrentServerInformation = {};
|
|
||||||
CurrentCapabilities = {};
|
|
||||||
managerSetter(nullptr);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ServiceRegistered = bool(proxy.get_name_owner());
|
|
||||||
if (!ServiceRegistered) {
|
if (!ServiceRegistered) {
|
||||||
CurrentServerInformation = {};
|
CurrentServerInformation = {};
|
||||||
CurrentCapabilities = {};
|
CurrentCapabilities = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user