mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Removed APPNAME and LIMIT_DESC consts from cocoa.
This commit is contained in:
@@ -19,7 +19,6 @@ http://www.hardcoded.net/licenses/hs_license
|
||||
IBOutlet NSMenuItem *unlockMenuItem;
|
||||
IBOutlet ResultWindowBase *result;
|
||||
|
||||
NSString *_appName;
|
||||
DetailsPanelBase *_detailsPanel;
|
||||
}
|
||||
- (IBAction)unlockApp:(id)sender;
|
||||
|
||||
@@ -13,21 +13,14 @@ http://www.hardcoded.net/licenses/hs_license
|
||||
#import "Consts.h"
|
||||
|
||||
@implementation AppDelegateBase
|
||||
- (id)init
|
||||
{
|
||||
self = [super init];
|
||||
_appName = @"";
|
||||
return self;
|
||||
}
|
||||
|
||||
- (IBAction)unlockApp:(id)sender
|
||||
{
|
||||
if ([[self py] isRegistered])
|
||||
return;
|
||||
RegistrationInterface *ri = [[RegistrationInterface alloc] initWithApp:[self py] name:_appName limitDescription:LIMIT_DESC];
|
||||
RegistrationInterface *ri = [[RegistrationInterface alloc] initWithApp:[self py]];
|
||||
if ([ri enterCode] == NSOKButton)
|
||||
{
|
||||
NSString *menuTitle = [NSString stringWithFormat:@"Thanks for buying %@!",_appName];
|
||||
NSString *menuTitle = [NSString stringWithFormat:@"Thanks for buying %@!",[py appName]];
|
||||
[unlockMenuItem setTitle:menuTitle];
|
||||
}
|
||||
[ri release];
|
||||
@@ -50,8 +43,8 @@ http://www.hardcoded.net/licenses/hs_license
|
||||
else
|
||||
[result resetColumnsToDefault:nil];
|
||||
//Reg stuff
|
||||
if ([RegistrationInterface showNagWithApp:[self py] name:_appName limitDescription:LIMIT_DESC])
|
||||
[unlockMenuItem setTitle:[NSString stringWithFormat:@"Thanks for buying %@!",_appName]];
|
||||
if ([RegistrationInterface showNagWithApp:[self py]])
|
||||
[unlockMenuItem setTitle:[NSString stringWithFormat:@"Thanks for buying %@!",[py appName]]];
|
||||
//Restore results
|
||||
[py loadIgnoreList];
|
||||
[py loadResults];
|
||||
|
||||
@@ -24,5 +24,4 @@ http://www.hardcoded.net/licenses/hs_license
|
||||
#define jobMove @"job_move"
|
||||
#define jobDelete @"job_delete"
|
||||
|
||||
#define DEMO_MAX_ACTION_COUNT 10
|
||||
#define LIMIT_DESC @"In the demo version, only 10 duplicates per session can be sent to Trash, moved or copied."
|
||||
#define DEMO_MAX_ACTION_COUNT 10
|
||||
Reference in New Issue
Block a user