1
0
Fork 0
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:
Mitchell Livingston 2006-10-25 13:31:49 +00:00
parent bc103e3f6f
commit bc619e3df3
2 changed files with 6 additions and 5 deletions

View file

@ -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];
}

View file

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