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
|
||||
{
|
||||
NSImage * dockIcon;
|
||||
NSSize iconSize = [fDockIcon size];
|
||||
NSImage * dockIcon = nil;
|
||||
|
||||
//set completed badge to top right
|
||||
if (completed > 0)
|
||||
|
@ -78,6 +77,7 @@
|
|||
dockIcon = [fDockIcon copy];
|
||||
|
||||
NSRect badgeRect;
|
||||
NSSize iconSize = [dockIcon size];
|
||||
badgeRect.size = [fBadge size];
|
||||
badgeRect.origin.x = iconSize.width - badgeRect.size.width;
|
||||
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
|
||||
{
|
||||
NSString * urlString;
|
||||
NSString * urlString = nil;
|
||||
|
||||
NSAppleEventDescriptor * directObject = [event paramDescriptorForKeyword: keyDirectObject];
|
||||
if ([directObject descriptorType] == typeAEList)
|
||||
|
|
|
@ -32,5 +32,4 @@
|
|||
return icon;
|
||||
}
|
||||
|
||||
|
||||
@end
|
|
@ -18,5 +18,4 @@
|
|||
return value == nil ? nil : [value lastPathComponent];
|
||||
}
|
||||
|
||||
|
||||
@end
|
Loading…
Reference in New Issue