mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
macos: View-based FileOutlineView (#7760)
Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
committed by
GitHub
parent
909fdad807
commit
d1985b05c6
@@ -88,13 +88,13 @@
|
||||
|
||||
if (self.fTorrents.count == 1)
|
||||
{
|
||||
[self.fFileController refresh];
|
||||
[self.fFileController reloadVisibleRows];
|
||||
|
||||
#warning use TorrentFileCheckChange notification as well
|
||||
Torrent* torrent = self.fTorrents[0];
|
||||
if (torrent.folder)
|
||||
{
|
||||
NSInteger const filesCheckState = [torrent
|
||||
NSControlStateValue const filesCheckState = [torrent
|
||||
checkForFiles:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, torrent.fileCount)]];
|
||||
self.fCheckAllButton.enabled = filesCheckState != NSControlStateValueOn; //if anything is unchecked
|
||||
self.fUncheckAllButton.enabled = !torrent.allDownloaded; //if there are any checked files that aren't finished
|
||||
|
||||
Reference in New Issue
Block a user