Skip to content
Snippets Groups Projects
Commit 58c708a3 authored by Marvin Scholz's avatar Marvin Scholz
Browse files

macosx: Display icons depending on renderer capabilities

parent da402162
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,10 @@
NSMenuItem *menuItem = [[NSMenuItem alloc] initWithTitle:item.name
action:@selector(selectRenderer:)
keyEquivalent:@""];
if (item.capabilityFlags & VLC_RENDERER_CAN_VIDEO)
[menuItem setImage:[NSImage imageNamed:@"sidebar-movie"]];
else
[menuItem setImage:[NSImage imageNamed:@"sidebar-music"]];
[menuItem setTarget:self];
[menuItem setRepresentedObject:item];
[_rendererMenu insertItem:menuItem atIndex:[_rendererMenu indexOfItem:_rendererNoneItem] + 1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment