Commit b26bc679 authored by Marvin Scholz's avatar Marvin Scholz Committed by Thomas Guillem

macosx: Display icons depending on renderer capabilities

(cherry picked from commit 58c708a3)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 7c68891a
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment