Disable the offset and export menu item if multiple tracks are selected.

This commit is contained in:
Damiano Galassi committed 2017-03-13 17:25:41 +01:00
1 parent 8d5fcf9d22
commit 1ee2514b05
1 file changed
+2 -2
+2 -2
View File
@@ -488,7 +488,7 @@ static NSDictionary *_detailMonospacedAttr;
if (action == @selector(sendToExternalApp:))
return YES;
if (action == @selector(showTrackOffsetSheet:) && self.tracksTable.selectedRow != -1)
if (action == @selector(showTrackOffsetSheet:) && self.tracksTable.selectedRowIndexes.count == 1 && self.tracksTable.selectedRow != -1)
return YES;
if (action == @selector(addChaptersEvery:))
@@ -503,7 +503,7 @@ static NSDictionary *_detailMonospacedAttr;
if (action == @selector(fixAudioFallbacks:))
return YES;
if (action == @selector(export:) && self.tracksTable.selectedRow != -1)
if (action == @selector(export:) && self.tracksTable.selectedRowIndexes.count == 1 && self.tracksTable.selectedRow != -1)
if ([[self trackAtAtTableRow:self.tracksTable.selectedRow] respondsToSelector:@selector(exportToURL:error:)] &&
[self trackAtAtTableRow:self.tracksTable.selectedRow].muxed)
return YES;