Browse Source

fix review comments

pull/6779/head
Jumar Macato 5 years ago
parent
commit
7603e57ae9
No known key found for this signature in database GPG Key ID: 85076C4D9D3155A3
  1. 9
      src/Avalonia.FreeDesktop/DBusTrayIconImpl.cs

9
src/Avalonia.FreeDesktop/DBusTrayIconImpl.cs

@ -49,7 +49,7 @@ namespace Avalonia.FreeDesktop
if (_connection is null)
{
Logger.TryGet(LogEventLevel.Error, LogArea.X11Platform)
Logger.TryGet(LogEventLevel.Error, "DBUS")
?.Log(this, "Unable to get a dbus connection for system tray icons.");
return;
@ -76,9 +76,9 @@ namespace Avalonia.FreeDesktop
}
catch
{
Logger.TryGet(LogEventLevel.Error, LogArea.X11Platform)
Logger.TryGet(LogEventLevel.Error, "DBUS")
?.Log(this,
"DBUS: org.kde.StatusNotifierWatcher service is not available on this system. System Tray Icons will not work without it.");
"org.kde.StatusNotifierWatcher service is not available on this system. Tray Icons will not work without it.");
return;
}
@ -131,6 +131,9 @@ namespace Avalonia.FreeDesktop
}
catch (Exception e)
{
Logger.TryGet(LogEventLevel.Error, "DBUS")
?.Log(this, $"Error creating a DBus tray icon: {e}.");
_serviceConnected = false;
}

Loading…
Cancel
Save