Pārlūkot izejas kodu

Fixed a bug that prevented Retina Images from loading, showing the normal version instead.

Thomas Buck 11 gadus atpakaļ
vecāks
revīzija
efdcd91580

+ 1
- 1
BaconBarHelper/BaconBarHelper-Info.plist Parādīt failu

@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>66</string>
24
+	<string>67</string>
25 25
 	<key>LSBackgroundOnly</key>
26 26
 	<true/>
27 27
 	<key>LSMinimumSystemVersion</key>

+ 4
- 5
RedditBar/AppDelegate.m Parādīt failu

@@ -43,11 +43,10 @@ NSInteger numberOfStaticMenuItems = 10;
43 43
 
44 44
 - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
45 45
     statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength];
46
-    NSBundle *bundle = [NSBundle mainBundle];
47
-    statusImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon" ofType:@"png"]];
48
-    statusHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon-alt" ofType:@"png"]];
49
-    orangeredImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"orangered" ofType:@"png"]];
50
-    orangeredHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"orangered-alt" ofType:@"png"]];
46
+    statusImage = [NSImage imageNamed:@"icon"];
47
+    statusHighlightImage = [NSImage imageNamed:@"icon-alt"];
48
+    orangeredImage = [NSImage imageNamed:@"orangered"];
49
+    orangeredHighlightImage = [NSImage imageNamed:@"orangered-alt"];
51 50
     [statusItem setImage:statusImage];
52 51
     [statusItem setAlternateImage:statusHighlightImage];
53 52
     [statusItem setMenu:statusMenu];

+ 2
- 2
RedditBar/BaconBar-Info.plist Parādīt failu

@@ -17,11 +17,11 @@
17 17
 	<key>CFBundlePackageType</key>
18 18
 	<string>APPL</string>
19 19
 	<key>CFBundleShortVersionString</key>
20
-	<string>1.5.1</string>
20
+	<string>1.5.2</string>
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>414</string>
24
+	<string>415</string>
25 25
 	<key>LSApplicationCategoryType</key>
26 26
 	<string>public.app-category.utilities</string>
27 27
 	<key>LSMinimumSystemVersion</key>

Notiek ielāde…
Atcelt
Saglabāt