mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-05 07:49:02 +00:00
3093a42553
It was an unmaintained feature that wasn't working well with recent OS X releases.
58 lines
1.9 KiB
Objective-C
58 lines
1.9 KiB
Objective-C
/*
|
|
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
|
|
http://www.gnu.org/licenses/gpl-3.0.html
|
|
*/
|
|
|
|
#import "AppDelegate.h"
|
|
#import "ProgressController.h"
|
|
#import "Utils.h"
|
|
#import "ValueTransformers.h"
|
|
#import "Dialogs.h"
|
|
#import "DetailsPanel.h"
|
|
#import "ResultWindow.h"
|
|
#import "Consts.h"
|
|
|
|
@implementation AppDelegate
|
|
+ (NSDictionary *)defaultPreferences
|
|
{
|
|
NSMutableDictionary *d = [NSMutableDictionary dictionaryWithDictionary:[super defaultPreferences]];
|
|
[d setObject:i2n(3) forKey:@"scanType"];
|
|
[d setObject:i2n(80) forKey:@"minMatchPercentage"];
|
|
[d setObject:b2n(NO) forKey:@"wordWeighting"];
|
|
[d setObject:b2n(NO) forKey:@"matchSimilarWords"];
|
|
[d setObject:b2n(NO) forKey:@"scanTagTrack"];
|
|
[d setObject:b2n(YES) forKey:@"scanTagArtist"];
|
|
[d setObject:b2n(YES) forKey:@"scanTagAlbum"];
|
|
[d setObject:b2n(YES) forKey:@"scanTagTitle"];
|
|
[d setObject:b2n(NO) forKey:@"scanTagGenre"];
|
|
[d setObject:b2n(NO) forKey:@"scanTagYear"];
|
|
return d;
|
|
}
|
|
|
|
- (id)init
|
|
{
|
|
self = [super init];
|
|
NSMutableIndexSet *i = [NSMutableIndexSet indexSetWithIndex:4];
|
|
[i addIndex:5];
|
|
VTIsIntIn *vtScanTypeIsNotContent = [[[VTIsIntIn alloc] initWithValues:i reverse:YES] autorelease];
|
|
[NSValueTransformer setValueTransformer:vtScanTypeIsNotContent forName:@"vtScanTypeIsNotContent"];
|
|
VTIsIntIn *vtScanTypeIsTag = [[[VTIsIntIn alloc] initWithValues:[NSIndexSet indexSetWithIndex:3] reverse:NO] autorelease];
|
|
[NSValueTransformer setValueTransformer:vtScanTypeIsTag forName:@"vtScanTypeIsTag"];
|
|
_directoryPanel = nil;
|
|
return self;
|
|
}
|
|
|
|
- (NSString *)homepageURL
|
|
{
|
|
return @"https://www.hardcoded.net/dupeguru_me/";
|
|
}
|
|
|
|
- (ResultWindowBase *)createResultWindow
|
|
{
|
|
return [[ResultWindow alloc] initWithParentApp:self];
|
|
}
|
|
@end
|