Add a "Clear tracks names" menu item.
This commit is contained in:
1 parent
4f06e6a2df
commit
3822d7df1d
3 files changed
+60
-26
No files matched your search
@@ -461,6 +461,9 @@ static NSDictionary *_detailMonospacedAttr;
|
||||
if (action == @selector(iTunesFriendlyTrackGroups:))
|
||||
return YES;
|
||||
|
||||
if (action == @selector(clearTracksNames:))
|
||||
return YES;
|
||||
|
||||
if (action == @selector(fixAudioFallbacks:))
|
||||
return YES;
|
||||
|
||||
@@ -1074,6 +1077,15 @@ static NSDictionary *_detailMonospacedAttr;
|
||||
[self updateChangeCount:NSChangeDone];
|
||||
}
|
||||
|
||||
- (IBAction)clearTracksNames:(id)sender
|
||||
{
|
||||
for (MP42Track *track in self.mp4.tracks) {
|
||||
track.name = @"";
|
||||
}
|
||||
[self.tracksTable reloadData];
|
||||
[self updateChangeCount:NSChangeDone];
|
||||
}
|
||||
|
||||
- (IBAction)fixAudioFallbacks:(id)sender {
|
||||
[self.mp4 setAutoFallback];
|
||||
[self.tracksTable reloadData];
|
||||
|
||||
Reference in new issue
Block a user