add preset limits to torrent action menu speed limits
This commit is contained in:
parent
f0f61ddd2b
commit
4bcc5fa687
|
@ -34,9 +34,8 @@
|
|||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>1936</integer>
|
||||
<integer>21</integer>
|
||||
<integer>29</integer>
|
||||
<integer>1041</integer>
|
||||
<integer>21</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8R4031</string>
|
||||
|
|
Binary file not shown.
|
@ -321,7 +321,6 @@
|
|||
[fActionMenu removeItem: oldFileMenuItem];
|
||||
|
||||
//set file menu
|
||||
#warning localize
|
||||
NSMenuItem * fileMenuItem = [[NSMenuItem alloc] initWithTitle: NSLocalizedString(@"Files",
|
||||
"torrent action context menu -> files menu") action: NULL keyEquivalent: @""];
|
||||
[fileMenuItem setTag: ACTION_MENU_FILE_TAG];
|
||||
|
@ -450,7 +449,11 @@
|
|||
|
||||
- (void) setQuickLimit: (id) sender
|
||||
{
|
||||
BOOL upload = [sender menu] == fUploadMenu;
|
||||
[fMenuTorrent setSpeedMode: TR_SPEEDLIMIT_SINGLE upload: upload];
|
||||
[fMenuTorrent setSpeedLimit: [[sender title] intValue] upload: upload];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateSettings" object: nil];
|
||||
}
|
||||
|
||||
- (void) checkFile: (id) sender
|
||||
|
|
Loading…
Reference in New Issue