mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
since it uses a relative date, set the date added value on each pulse
This commit is contained in:
parent
27f7ecbcbd
commit
4bf03c3be7
1 changed files with 3 additions and 2 deletions
|
@ -142,6 +142,9 @@
|
||||||
|
|
||||||
[fDateCompletedField setObjectValue: [torrent dateCompleted]];
|
[fDateCompletedField setObjectValue: [torrent dateCompleted]];
|
||||||
|
|
||||||
|
//uses a relative date, so can't be set once
|
||||||
|
[fDateAddedField setObjectValue: [torrent dateAdded]];
|
||||||
|
|
||||||
[fDownloadTimeField setStringValue: [NSString timeString: [torrent secondsDownloading] showSeconds: YES]];
|
[fDownloadTimeField setStringValue: [NSString timeString: [torrent secondsDownloading] showSeconds: YES]];
|
||||||
[fSeedTimeField setStringValue: [NSString timeString: [torrent secondsSeeding] showSeconds: YES]];
|
[fSeedTimeField setStringValue: [NSString timeString: [torrent secondsSeeding] showSeconds: YES]];
|
||||||
|
|
||||||
|
@ -206,8 +209,6 @@
|
||||||
{
|
{
|
||||||
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||||
|
|
||||||
[fDateAddedField setObjectValue: [torrent dateAdded]];
|
|
||||||
|
|
||||||
const BOOL piecesAvailableSegment = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
|
const BOOL piecesAvailableSegment = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
|
||||||
[fPiecesControl setSelected: piecesAvailableSegment forSegment: PIECES_CONTROL_AVAILABLE];
|
[fPiecesControl setSelected: piecesAvailableSegment forSegment: PIECES_CONTROL_AVAILABLE];
|
||||||
[fPiecesControl setSelected: !piecesAvailableSegment forSegment: PIECES_CONTROL_PROGRESS];
|
[fPiecesControl setSelected: !piecesAvailableSegment forSegment: PIECES_CONTROL_PROGRESS];
|
||||||
|
|
Loading…
Reference in a new issue