mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
add preset limits to torrent action menu speed limits
This commit is contained in:
parent
f0f61ddd2b
commit
4bcc5fa687
3 changed files with 5 additions and 3 deletions
3
macosx/English.lproj/MainMenu.nib/info.nib
generated
3
macosx/English.lproj/MainMenu.nib/info.nib
generated
|
@ -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>
|
||||
|
|
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
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 a new issue