mirror of
https://github.com/transmission/transmission
synced 2025-02-25 15:32:33 +00:00
update news
This commit is contained in:
parent
6cdaedb5c8
commit
f0f71ec09c
4 changed files with 5 additions and 9 deletions
1
NEWS
1
NEWS
|
@ -14,6 +14,7 @@ NEWS file for Transmission <http://transmission.m0k.org/>
|
||||||
+ Leopard: Time Machine will ignore incomplete downloads
|
+ Leopard: Time Machine will ignore incomplete downloads
|
||||||
+ Display remaining time for seeding transfers
|
+ Display remaining time for seeding transfers
|
||||||
+ Sort by total activity
|
+ Sort by total activity
|
||||||
|
+ Leopard: Fix bug where text fields would reject localized double values
|
||||||
- GTK+:
|
- GTK+:
|
||||||
+ Statistics window
|
+ Statistics window
|
||||||
|
|
||||||
|
|
|
@ -75,8 +75,8 @@
|
||||||
float downloadRate, uploadRate;
|
float downloadRate, uploadRate;
|
||||||
tr_torrentRates(fLib, &downloadRate, &uploadRate);
|
tr_torrentRates(fLib, &downloadRate, &uploadRate);
|
||||||
|
|
||||||
BOOL upload;
|
BOOL upload = checkUpload && uploadRate >= 0.1;
|
||||||
if ((upload = checkUpload && uploadRate >= 0.1))
|
if (upload)
|
||||||
[self badge: [NSImage imageNamed: @"UploadBadge"] string: [NSString stringForSpeedAbbrev: uploadRate] atHeight: 0.0];
|
[self badge: [NSImage imageNamed: @"UploadBadge"] string: [NSString stringForSpeedAbbrev: uploadRate] atHeight: 0.0];
|
||||||
if (checkDownload && downloadRate >= 0.1)
|
if (checkDownload && downloadRate >= 0.1)
|
||||||
{
|
{
|
||||||
|
@ -118,12 +118,9 @@
|
||||||
|
|
||||||
NSRect stringRect = badgeRect;
|
NSRect stringRect = badgeRect;
|
||||||
stringRect.origin.x += (badgeRect.size.width - stringSize.width) * 0.5;
|
stringRect.origin.x += (badgeRect.size.width - stringSize.width) * 0.5;
|
||||||
stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5;
|
stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5 + 1.0; //adjust for shadow
|
||||||
stringRect.size = stringSize;
|
stringRect.size = stringSize;
|
||||||
|
|
||||||
//adjust for shadow
|
|
||||||
stringRect.origin.y += 1.0;
|
|
||||||
|
|
||||||
[string drawInRect: stringRect withAttributes: fAttributes];
|
[string drawInRect: stringRect withAttributes: fAttributes];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//change that just impacts the dock badge
|
//change that just impacts the dock badge
|
||||||
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateBadge)
|
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateBadge) name: @"DockBadgeChange" object: nil];
|
||||||
name: @"DockBadgeChange" object: nil];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|
|
@ -400,7 +400,6 @@
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
- (void) setBadge: (id) sender
|
- (void) setBadge: (id) sender
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"DockBadgeChange" object: self];
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"DockBadgeChange" object: self];
|
||||||
|
|
Loading…
Reference in a new issue