phase 2 of updating menu items to remove bindings
This commit is contained in:
parent
4cde721475
commit
4584417bf0
|
@ -186,7 +186,6 @@
|
|||
- (void) setFilterSearchType: (id) sender;
|
||||
- (void) switchFilter: (id) sender;
|
||||
|
||||
- (void) applySpeedLimit: (id) sender;
|
||||
- (void) toggleSpeedLimit: (id) sender;
|
||||
- (void) autoSpeedLimitChange: (NSNotification *) notification;
|
||||
- (void) autoSpeedLimit;
|
||||
|
|
|
@ -2025,16 +2025,10 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
? [NSImage imageNamed: @"SpeedLimitButtonGraphite.png"] : [NSImage imageNamed: @"SpeedLimitButtonBlue.png"]];
|
||||
}
|
||||
|
||||
#warning look into
|
||||
- (void) applySpeedLimit: (id) sender
|
||||
{
|
||||
[fPrefsController applySpeedSettings: nil];
|
||||
}
|
||||
|
||||
- (void) toggleSpeedLimit: (id) sender
|
||||
{
|
||||
[fDefaults setBool: ![fDefaults boolForKey: @"SpeedLimit"] forKey: @"SpeedLimit"];
|
||||
[self applySpeedLimit: nil];
|
||||
[fPrefsController applySpeedSettings: nil];
|
||||
}
|
||||
|
||||
- (void) autoSpeedLimitChange: (NSNotification *) notification
|
||||
|
@ -2849,6 +2843,12 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
{
|
||||
SEL action = [menuItem action];
|
||||
|
||||
if (action == @selector(toggleSpeedLimit:))
|
||||
{
|
||||
[menuItem setState: [fDefaults boolForKey: @"SpeedLimit"] ? NSOnState : NSOffState];
|
||||
return YES;
|
||||
}
|
||||
|
||||
//only enable some items if it is in a context menu or the window is useable
|
||||
BOOL canUseTable = [fWindow isKeyWindow] || [[menuItem menu] supermenu] != [NSApp mainMenu];
|
||||
|
||||
|
|
|
@ -71,8 +71,6 @@
|
|||
<string>id</string>
|
||||
<key>applyFilter</key>
|
||||
<string>id</string>
|
||||
<key>applySpeedLimit</key>
|
||||
<string>id</string>
|
||||
<key>copyTorrentFiles</key>
|
||||
<string>id</string>
|
||||
<key>createFile</key>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<integer>5</integer>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>1639</integer>
|
||||
<integer>1326</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>9A581</string>
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue