Browse Source

remove unnecessary code

pull/6610/head
Jumar Macato 5 years ago
parent
commit
0ae373f597
  1. 20
      src/Avalonia.FreeDesktop/DBusSystemTray/DBusSysTray.cs

20
src/Avalonia.FreeDesktop/DBusSystemTray/DBusSysTray.cs

@ -163,25 +163,7 @@ namespace Avalonia.FreeDesktop.DBusSystemTray
public async Task<object> GetAsync(string prop)
{
return prop switch
{
"Category" => _backingProperties.Category,
"Id" => _backingProperties.Id,
"Title" => _backingProperties.Title,
"Status" => _backingProperties.Status,
"WindowId" => _backingProperties.WindowId,
"IconThemePath" => _backingProperties.IconThemePath,
"ItemIsMenu" => _backingProperties.ItemIsMenu,
"IconName" => _backingProperties.IconName,
"IconPixmap" => _backingProperties.IconPixmap,
"OverlayIconName" => _backingProperties.OverlayIconName,
"OverlayIconPixmap" => _backingProperties.OverlayIconPixmap,
"AttentionIconName" => _backingProperties.AttentionIconName,
"AttentionIconPixmap" => _backingProperties.AttentionIconPixmap,
"AttentionMovieName" => _backingProperties.AttentionMovieName,
"ToolTip" => _backingProperties.ToolTip,
_ => default
};
return default;
}
public async Task<StatusNotifierItemProperties> GetAllAsync()

Loading…
Cancel
Save