macos: View-based FileOutlineView (#7760)

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
Dzmitry Neviadomski
2025-11-09 20:21:42 +03:00
committed by GitHub
parent 909fdad807
commit d1985b05c6
21 changed files with 877 additions and 634 deletions

View File

@@ -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