Browse Source

suppress warning and make a log event that probably will never happen in real life

pull/6779/head
Jumar Macato 5 years ago
parent
commit
2d56501015
  1. 10
      src/Avalonia.FreeDesktop/DBusTrayIconImpl.cs

10
src/Avalonia.FreeDesktop/DBusTrayIconImpl.cs

@ -62,8 +62,14 @@ namespace Avalonia.FreeDesktop
MenuExporter = DBusMenuExporter.TryCreateDetachedNativeMenu(_dbusMenuPath, _connection);
_serviceWatchDisposable = Watch();
IconConverterDelegate = impl =>
{
Logger.TryGet(LogEventLevel.Error, LogArea.X11Platform)
?.Log(this, "The icon converter delegate for the DBus Tray Icons was not set properly.");
return new uint[] { };
};
}
private void InitializeSNWService()

Loading…
Cancel
Save