|
@@ -409,7 +409,7 @@
|
409
|
409
|
[cp setContinuous:NO];
|
410
|
410
|
[cp setMode:NSRGBModeColorPanel];
|
411
|
411
|
|
412
|
|
- // TODO Try to restore last manually selected color
|
|
412
|
+ // Try to restore last manually selected color
|
413
|
413
|
NSUserDefaults *store = [NSUserDefaults standardUserDefaults];
|
414
|
414
|
NSData *lastColorData = [store dataForKey:PREF_COLOR];
|
415
|
415
|
NSColor *lastColor = nil;
|
|
@@ -418,7 +418,8 @@
|
418
|
418
|
[cp setColor:lastColor];
|
419
|
419
|
}
|
420
|
420
|
|
421
|
|
- [[NSApplication sharedApplication] orderFrontColorPanel:cp];
|
|
421
|
+ [NSApp activateIgnoringOtherApps:YES];
|
|
422
|
+ [application orderFrontColorPanel:cp];
|
422
|
423
|
}
|
423
|
424
|
|
424
|
425
|
- (void)colorSelected:(id)sender {
|