mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
Small fix for changing action menu values after prefs are changed.
This commit is contained in:
parent
bc103e3f6f
commit
bc619e3df3
2 changed files with 6 additions and 5 deletions
|
@ -116,7 +116,8 @@
|
|||
[self callBackWithStatus: PORT_STATUS_STEALTH];
|
||||
else if ([portStatus isEqualToString: @"closed"])
|
||||
[self callBackWithStatus: PORT_STATUS_CLOSED];
|
||||
else {
|
||||
else
|
||||
{
|
||||
NSLog(@"Unable to get port status: unknown port state");
|
||||
[self callBackWithStatus: PORT_STATUS_ERROR];
|
||||
}
|
||||
|
|
|
@ -506,10 +506,10 @@
|
|||
}
|
||||
|
||||
BOOL check = [sender state] == NSOnState;
|
||||
[fDefaults setBool: check forKey: key];
|
||||
|
||||
[self setLimit: field];
|
||||
[field setEnabled: check];
|
||||
|
||||
[fDefaults setBool: check forKey: key];
|
||||
}
|
||||
|
||||
- (void) setQuickLimitEnabled: (BOOL) enable type: (NSString *) type
|
||||
|
@ -664,10 +664,10 @@
|
|||
- (void) setRatioCheck: (id) sender
|
||||
{
|
||||
BOOL check = [sender state] == NSOnState;
|
||||
[fDefaults setBool: check forKey: @"RatioCheck"];
|
||||
|
||||
[self setRatio: fRatioField];
|
||||
[fRatioField setEnabled: check];
|
||||
|
||||
[fDefaults setBool: check forKey: @"RatioCheck"];
|
||||
}
|
||||
|
||||
- (void) setQuickRatioEnabled: (BOOL) enable
|
||||
|
|
Loading…
Reference in a new issue