mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
allow the pieces grid's type to be changed once again
This commit is contained in:
parent
c1e70f4e17
commit
c83b9c5cb9
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@
|
||||||
|
|
||||||
[fDateAddedField setObjectValue: [torrent dateAdded]];
|
[fDateAddedField setObjectValue: [torrent dateAdded]];
|
||||||
|
|
||||||
|
BOOL piecesAvailableSegment = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
|
||||||
|
[fPiecesControl setSelected: piecesAvailableSegment forSegment: PIECES_CONTROL_AVAILABLE];
|
||||||
|
[fPiecesControl setSelected: !piecesAvailableSegment forSegment: PIECES_CONTROL_PROGRESS];
|
||||||
|
[fPiecesControl setEnabled: YES];
|
||||||
[fPiecesView setTorrent: torrent];
|
[fPiecesView setTorrent: torrent];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue