1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

on non-folder torrents, the per-torrent action menu shouldn't show the file

This commit is contained in:
Mitchell Livingston 2009-11-04 02:46:56 +00:00
parent dd5fa2e6b8
commit 4df6e0e723

View file

@ -553,7 +553,13 @@
//update file action menu
fMenuTorrent = [[self itemAtRow: row] retain];
[self createFileMenu: fActionMenu forFiles: [fMenuTorrent fileList]];
//show/hide the file divider
const BOOL isFolder = [fMenuTorrent isFolder];
[[fActionMenu itemAtIndex: numberOfNonFileItems-1] setHidden: !isFolder];
if (isFolder)
[self createFileMenu: fActionMenu forFiles: [fMenuTorrent fileList]];
//update global limit check
[fGlobalLimitItem setState: [fMenuTorrent usesGlobalSpeedLimit] ? NSOnState : NSOffState];