quick fix for last commit
This commit is contained in:
parent
f212862a17
commit
c6f4df3195
|
@ -69,8 +69,7 @@
|
||||||
|
|
||||||
- (void) updateBadgeWithCompleted: (int) completed uploadRate: (float) uploadRate downloadRate: (float) downloadRate
|
- (void) updateBadgeWithCompleted: (int) completed uploadRate: (float) uploadRate downloadRate: (float) downloadRate
|
||||||
{
|
{
|
||||||
NSImage * dockIcon;
|
NSImage * dockIcon = nil;
|
||||||
NSSize iconSize = [fDockIcon size];
|
|
||||||
|
|
||||||
//set completed badge to top right
|
//set completed badge to top right
|
||||||
if (completed > 0)
|
if (completed > 0)
|
||||||
|
@ -78,6 +77,7 @@
|
||||||
dockIcon = [fDockIcon copy];
|
dockIcon = [fDockIcon copy];
|
||||||
|
|
||||||
NSRect badgeRect;
|
NSRect badgeRect;
|
||||||
|
NSSize iconSize = [dockIcon size];
|
||||||
badgeRect.size = [fBadge size];
|
badgeRect.size = [fBadge size];
|
||||||
badgeRect.origin.x = iconSize.width - badgeRect.size.width;
|
badgeRect.origin.x = iconSize.width - badgeRect.size.width;
|
||||||
badgeRect.origin.y = iconSize.height - badgeRect.size.height;
|
badgeRect.origin.y = iconSize.height - badgeRect.size.height;
|
||||||
|
|
|
@ -461,7 +461,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
|
|
||||||
- (void) handleOpenContentsEvent: (NSAppleEventDescriptor *) event replyEvent: (NSAppleEventDescriptor *) replyEvent
|
- (void) handleOpenContentsEvent: (NSAppleEventDescriptor *) event replyEvent: (NSAppleEventDescriptor *) replyEvent
|
||||||
{
|
{
|
||||||
NSString * urlString;
|
NSString * urlString = nil;
|
||||||
|
|
||||||
NSAppleEventDescriptor * directObject = [event paramDescriptorForKeyword: keyDirectObject];
|
NSAppleEventDescriptor * directObject = [event paramDescriptorForKeyword: keyDirectObject];
|
||||||
if ([directObject descriptorType] == typeAEList)
|
if ([directObject descriptorType] == typeAEList)
|
||||||
|
|
|
@ -32,5 +32,4 @@
|
||||||
return icon;
|
return icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@end
|
@end
|
|
@ -18,5 +18,4 @@
|
||||||
return value == nil ? nil : [value lastPathComponent];
|
return value == nil ? nil : [value lastPathComponent];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@end
|
@end
|
Loading…
Reference in New Issue