1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 22:51:39 +00:00

Add the ME-specific "Remove Dead Tracks" menu item in the UI script instead of in the objc code.

--HG--
branch : xibless
This commit is contained in:
Virgil Dupras
2012-07-29 16:07:17 -04:00
parent ad5c4a954c
commit b0f9a94375
7 changed files with 7 additions and 13 deletions

View File

@@ -12,4 +12,5 @@ http://www.hardcoded.net/licenses/bsd_license
#import "PyDupeGuru.h"
@interface AppDelegate : AppDelegateBase {}
- (void)removeDeadTracks;
@end

View File

@@ -74,13 +74,8 @@ http://www.hardcoded.net/licenses/bsd_license
return [[DirectoryPanelME alloc] initWithParentApp:self];
}
//Delegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
- (void)removeDeadTracks
{
// index 3 is just after "Export Results to XHTML"
NSMenuItem *mi = [actionsMenu insertItemWithTitle:TR(@"Remove Dead Tracks in iTunes")
action:@selector(removeDeadTracks:) keyEquivalent:@"" atIndex:3];
[mi setTarget:[self resultWindow]];
[super applicationDidFinishLaunching:aNotification];
[(ResultWindow *)[self resultWindow] removeDeadTracks];
}
@end

View File

@@ -10,5 +10,5 @@ http://www.hardcoded.net/licenses/bsd_license
#import "../base/ResultWindow.h"
@interface ResultWindow : ResultWindowBase {}
- (IBAction)removeDeadTracks:(id)sender;
- (void)removeDeadTracks;
@end

View File

@@ -70,7 +70,7 @@ http://www.hardcoded.net/licenses/bsd_license
}
/* Actions */
- (IBAction)removeDeadTracks:(id)sender
- (void)removeDeadTracks
{
[model scanDeadTracks];
}