mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-02-04 04:11:38 +00:00
cocoa: remove iTunes support
It was an unmaintained feature that wasn't working well with recent OS X releases.
This commit is contained in:
@@ -12,5 +12,4 @@ http://www.gnu.org/licenses/gpl-3.0.html
|
||||
#import "PyDupeGuru.h"
|
||||
|
||||
@interface AppDelegate : AppDelegateBase {}
|
||||
- (void)removeDeadTracks;
|
||||
@end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
||||
Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
|
||||
|
||||
This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
||||
which should be included with this package. The terms are also available at
|
||||
@@ -12,7 +12,6 @@ http://www.gnu.org/licenses/gpl-3.0.html
|
||||
#import "ValueTransformers.h"
|
||||
#import "Dialogs.h"
|
||||
#import "DetailsPanel.h"
|
||||
#import "DirectoryPanel.h"
|
||||
#import "ResultWindow.h"
|
||||
#import "Consts.h"
|
||||
|
||||
@@ -48,21 +47,11 @@ http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
- (NSString *)homepageURL
|
||||
{
|
||||
return @"http://www.hardcoded.net/dupeguru_me/";
|
||||
return @"https://www.hardcoded.net/dupeguru_me/";
|
||||
}
|
||||
|
||||
- (ResultWindowBase *)createResultWindow
|
||||
{
|
||||
return [[ResultWindow alloc] initWithParentApp:self];
|
||||
}
|
||||
|
||||
- (DirectoryPanel *)createDirectoryPanel
|
||||
{
|
||||
return [[DirectoryPanelME alloc] initWithParentApp:self];
|
||||
}
|
||||
|
||||
- (void)removeDeadTracks
|
||||
{
|
||||
[(ResultWindow *)[self resultWindow] removeDeadTracks];
|
||||
}
|
||||
@end
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
/*
|
||||
Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
||||
|
||||
This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
||||
which should be included with this package. The terms are also available at
|
||||
http://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
|
||||
#import "../base/Consts.h"
|
||||
|
||||
#define jobScanDeadTracks @"jobScanDeadTracks"
|
||||
@@ -1,16 +0,0 @@
|
||||
/*
|
||||
Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
||||
|
||||
This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
||||
which should be included with this package. The terms are also available at
|
||||
http://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "../base/DirectoryPanel.h"
|
||||
|
||||
@interface DirectoryPanelME : DirectoryPanel
|
||||
{
|
||||
}
|
||||
- (IBAction)addiTunes:(id)sender;
|
||||
@end
|
||||
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
||||
|
||||
This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
||||
which should be included with this package. The terms are also available at
|
||||
http://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
|
||||
#import "DirectoryPanel.h"
|
||||
|
||||
@implementation DirectoryPanelME
|
||||
- (id)initWithParentApp:(id)aParentApp
|
||||
{
|
||||
self = [super initWithParentApp:aParentApp];
|
||||
_alwaysShowPopUp = YES;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)fillPopUpMenu
|
||||
{
|
||||
[super fillPopUpMenu];
|
||||
NSMenu *m = [addButtonPopUp menu];
|
||||
NSMenuItem *mi = [m insertItemWithTitle:NSLocalizedString(@"Add iTunes Library", @"") action:@selector(addiTunes:)
|
||||
keyEquivalent:@"" atIndex:1];
|
||||
[mi setTarget:self];
|
||||
}
|
||||
|
||||
- (IBAction)addiTunes:(id)sender
|
||||
{
|
||||
[self addDirectory:@"iTunes Library"];
|
||||
}
|
||||
@end
|
||||
@@ -10,5 +10,4 @@ http://www.gnu.org/licenses/gpl-3.0.html
|
||||
#import "ResultWindowBase.h"
|
||||
|
||||
@interface ResultWindow : ResultWindowBase {}
|
||||
- (void)removeDeadTracks;
|
||||
@end
|
||||
|
||||
@@ -68,10 +68,4 @@ http://www.gnu.org/licenses/gpl-3.0.html
|
||||
[[c dataCell] setAlignment:NSRightTextAlignment];
|
||||
[[table columns] restoreColumns];
|
||||
}
|
||||
|
||||
/* Actions */
|
||||
- (void)removeDeadTracks
|
||||
{
|
||||
[model scanDeadTracks];
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user