mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
on non-folder torrents, the per-torrent action menu shouldn't show the file
This commit is contained in:
parent
dd5fa2e6b8
commit
4df6e0e723
1 changed files with 7 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue