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

[#12] Tweaked the custom command feature under Cocoa.

This commit is contained in:
Virgil Dupras
2010-04-13 10:52:44 +02:00
parent 7346b422d5
commit 5bc8581389
2 changed files with 178 additions and 173 deletions

View File

@@ -204,7 +204,12 @@ http://www.hardcoded.net/licenses/hs_license
{
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
NSString *cmd = [ud stringForKey:@"CustomCommand"];
[py invokeCommand:cmd];
if ((cmd != nil) && ([cmd length] > 0)) {
[py invokeCommand:cmd];
}
else {
[Dialogs showMessage:@"You have no custom command set up. Set it up in your preferences."];
}
}
- (IBAction)markAll:(id)sender