Skip to content
Snippets Groups Projects
Commit c93b9532 authored by Claudio Cambra's avatar Claudio Cambra Committed by Steve Lhomme
Browse files

macosx: Ensure we are only displaying local-only menu items if all represented objects are local


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 0a9b2e9c
No related branches found
No related tags found
1 merge request!5465macosx: Add multiple selection support for library table views
......@@ -116,9 +116,15 @@
[self menuItems:_mediaItemRequiringMenuItems setHidden:YES];
[self menuItems:_inputItemRequiringMenuItems setHidden:NO];
[self menuItems:_localInputItemRequiringMenuItems
setHidden:self.representedInputItems.firstObject.isStream];
}
BOOL anyStream = NO;
for (VLCInputItem * const inputItem in self.representedInputItems) {
if (inputItem.isStream) {
anyStream = YES;
break;
}
}
[self menuItems:_localInputItemRequiringMenuItems setHidden:anyStream];
}
}
- (void)popupMenuWithEvent:(NSEvent *)theEvent forView:(NSView *)theView
......
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