mirror of
https://github.com/transmission/transmission
synced 2025-02-22 14:10:34 +00:00
fix per-torrent action menu's limit submenus
This commit is contained in:
parent
df9659ae8e
commit
86a98db220
2 changed files with 15 additions and 6 deletions
|
@ -584,7 +584,7 @@
|
|||
if (menu == fUploadMenu || menu == fDownloadMenu)
|
||||
{
|
||||
NSMenuItem * item;
|
||||
if ([menu numberOfItems] == 4)
|
||||
if ([menu numberOfItems] == 3)
|
||||
{
|
||||
const NSInteger speedLimitActionValue[] = { 0, 5, 10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500, 750, -1 };
|
||||
|
||||
|
@ -600,9 +600,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
BOOL upload = menu == fUploadMenu;
|
||||
const BOOL upload = menu == fUploadMenu;
|
||||
|
||||
BOOL limit = [fMenuTorrent usesSpeedLimit: upload];
|
||||
const BOOL limit = [fMenuTorrent usesSpeedLimit: upload];
|
||||
|
||||
item = [menu itemWithTag: ACTION_MENU_LIMIT_TAG];
|
||||
[item setState: limit ? NSOnState : NSOffState];
|
||||
|
@ -610,7 +610,7 @@
|
|||
"torrent action menu -> upload/download limit"), [fMenuTorrent speedLimit: upload]]];
|
||||
|
||||
item = [menu itemWithTag: ACTION_MENU_UNLIMITED_TAG];
|
||||
[item setState:limit ? NSOnState : NSOffState];
|
||||
[item setState: !limit ? NSOnState : NSOffState];
|
||||
}
|
||||
else if (menu == fRatioMenu)
|
||||
{
|
||||
|
|
|
@ -3870,6 +3870,7 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
</object>
|
||||
<string key="NSFrame">{{1, 17}, {338, 172}}</string>
|
||||
<reference key="NSSuperview" ref="1009918777"/>
|
||||
<reference key="NSNextKeyView" ref="221969066"/>
|
||||
<reference key="NSDocView" ref="221969066"/>
|
||||
<reference key="NSBGColor" ref="987864771"/>
|
||||
<int key="NScvFlags">4</int>
|
||||
|
@ -3903,6 +3904,7 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
</object>
|
||||
<string key="NSFrame">{{1, 0}, {338, 17}}</string>
|
||||
<reference key="NSSuperview" ref="1009918777"/>
|
||||
<reference key="NSNextKeyView" ref="1053875789"/>
|
||||
<reference key="NSDocView" ref="1053875789"/>
|
||||
<reference key="NSBGColor" ref="987864771"/>
|
||||
<int key="NScvFlags">4</int>
|
||||
|
@ -3911,6 +3913,7 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
</object>
|
||||
<string key="NSFrame">{{10, 77}, {340, 190}}</string>
|
||||
<reference key="NSSuperview" ref="180459949"/>
|
||||
<reference key="NSNextKeyView" ref="386870512"/>
|
||||
<int key="NSsFlags">562</int>
|
||||
<reference key="NSVScroller" ref="70145897"/>
|
||||
<reference key="NSHScroller" ref="38561669"/>
|
||||
|
@ -4028,6 +4031,7 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
</object>
|
||||
<string key="NSFrame">{{1, 17}, {338, 48}}</string>
|
||||
<reference key="NSSuperview" ref="252354812"/>
|
||||
<reference key="NSNextKeyView" ref="705721384"/>
|
||||
<reference key="NSDocView" ref="705721384"/>
|
||||
<reference key="NSBGColor" ref="987864771"/>
|
||||
<int key="NScvFlags">4</int>
|
||||
|
@ -4061,6 +4065,7 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
</object>
|
||||
<string key="NSFrame">{{1, 0}, {338, 17}}</string>
|
||||
<reference key="NSSuperview" ref="252354812"/>
|
||||
<reference key="NSNextKeyView" ref="842629001"/>
|
||||
<reference key="NSDocView" ref="842629001"/>
|
||||
<reference key="NSBGColor" ref="987864771"/>
|
||||
<int key="NScvFlags">4</int>
|
||||
|
@ -4069,6 +4074,7 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
</object>
|
||||
<string key="NSFrame">{{10, 271}, {340, 66}}</string>
|
||||
<reference key="NSSuperview" ref="180459949"/>
|
||||
<reference key="NSNextKeyView" ref="230403242"/>
|
||||
<int key="NSsFlags">562</int>
|
||||
<reference key="NSVScroller" ref="58257122"/>
|
||||
<reference key="NSHScroller" ref="904154524"/>
|
||||
|
@ -4436,6 +4442,7 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
</object>
|
||||
<string key="NSFrame">{{1, 17}, {307, 308}}</string>
|
||||
<reference key="NSSuperview" ref="723460874"/>
|
||||
<reference key="NSNextKeyView" ref="40458268"/>
|
||||
<reference key="NSDocView" ref="40458268"/>
|
||||
<reference key="NSBGColor" ref="987864771"/>
|
||||
<int key="NScvFlags">4</int>
|
||||
|
@ -4469,6 +4476,7 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
</object>
|
||||
<string key="NSFrame">{{1, 0}, {307, 17}}</string>
|
||||
<reference key="NSSuperview" ref="723460874"/>
|
||||
<reference key="NSNextKeyView" ref="723017189"/>
|
||||
<reference key="NSDocView" ref="723017189"/>
|
||||
<reference key="NSBGColor" ref="987864771"/>
|
||||
<int key="NScvFlags">4</int>
|
||||
|
@ -4477,6 +4485,7 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
</object>
|
||||
<string key="NSFrame">{{10, 34}, {320, 326}}</string>
|
||||
<reference key="NSSuperview" ref="175372463"/>
|
||||
<reference key="NSNextKeyView" ref="162592510"/>
|
||||
<int key="NSsFlags">18</int>
|
||||
<reference key="NSVScroller" ref="344671998"/>
|
||||
<reference key="NSHScroller" ref="280304392"/>
|
||||
|
@ -5080,13 +5089,13 @@ zijOSc5pzorOqs66ztvO+88czzzPXc99z57Pvs/fz+/QANAg0EHQYdCC0KLQw9Dj0PPRFNE00VXRddGW
|
|||
<object class="NSButton" id="768062986">
|
||||
<reference key="NSNextResponder" ref="1005910882"/>
|
||||
<int key="NSvFlags">268</int>
|
||||
<string key="NSFrame">{{76, 96}, {224, 18}}</string>
|
||||
<string key="NSFrame">{{76, 96}, {230, 18}}</string>
|
||||
<reference key="NSSuperview" ref="1005910882"/>
|
||||
<bool key="NSEnabled">YES</bool>
|
||||
<object class="NSButtonCell" key="NSCell" id="44864906">
|
||||
<int key="NSCellFlags">-2080244224</int>
|
||||
<int key="NSCellFlags2">16908288</int>
|
||||
<string key="NSContents">Stay within the global bandwidth limit</string>
|
||||
<string key="NSContents">Stay within the global bandwidth limits</string>
|
||||
<reference key="NSSupport" ref="26"/>
|
||||
<reference key="NSControlView" ref="768062986"/>
|
||||
<int key="NSButtonFlags">1211912703</int>
|
||||
|
|
Loading…
Reference in a new issue