Jumar Macato
5 years ago
No known key found for this signature in database
GPG Key ID: 85076C4D9D3155A3
1 changed files with
2 additions and
2 deletions
-
src/Avalonia.FreeDesktop/DBusTrayIconImpl.cs
|
|
|
@ -61,7 +61,7 @@ namespace Avalonia.FreeDesktop |
|
|
|
|
|
|
|
MenuExporter = DBusMenuExporter.TryCreateDetachedNativeMenu(_dbusMenuPath, _connection); |
|
|
|
|
|
|
|
_serviceWatchDisposable = Watch(); |
|
|
|
_serviceWatchDisposable = WatchAsync(); |
|
|
|
} |
|
|
|
|
|
|
|
private void InitializeSNWService() |
|
|
|
@ -86,7 +86,7 @@ namespace Avalonia.FreeDesktop |
|
|
|
_serviceConnected = true; |
|
|
|
} |
|
|
|
|
|
|
|
private Task<IDisposable> Watch() => |
|
|
|
private Task<IDisposable> WatchAsync() => |
|
|
|
_connection?.ResolveServiceOwnerAsync("org.kde.StatusNotifierWatcher", OnNameChange)!; |
|
|
|
|
|
|
|
private void OnNameChange(ServiceOwnerChangedEventArgs obj) |
|
|
|
|