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:
parent
dd5fa2e6b8
commit
4df6e0e723
1 changed files with 7 additions and 1 deletions
|
@ -553,6 +553,12 @@
|
|||
|
||||
//update file action menu
|
||||
fMenuTorrent = [[self itemAtRow: row] retain];
|
||||
|
||||
//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
|
||||
|
|
Loading…
Reference in a new issue