add preset limits to torrent action menu speed limits

This commit is contained in:
Mitchell Livingston 2007-08-18 00:12:26 +00:00
parent f0f61ddd2b
commit 4bcc5fa687
3 changed files with 5 additions and 3 deletions

View File

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

View File

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