Przeglądaj źródła

Fix for NSColorPanel only visible in debug build

Thomas Buck 9 lat temu
rodzic
commit
d68d868d38
2 zmienionych plików z 4 dodań i 3 usunięć
  1. 3
    2
      CaseLights/AppDelegate.m
  2. 1
    1
      CaseLights/Info.plist

+ 3
- 2
CaseLights/AppDelegate.m Wyświetl plik

@@ -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 {

+ 1
- 1
CaseLights/Info.plist Wyświetl plik

@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>170</string>
24
+	<string>172</string>
25 25
 	<key>LSApplicationCategoryType</key>
26 26
 	<string>public.app-category.utilities</string>
27 27
 	<key>LSMinimumSystemVersion</key>

Ładowanie…
Anuluj
Zapisz