mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
apply patch from #324
This commit is contained in:
parent
f36d558ad4
commit
7a8fbb837e
1 changed files with 11 additions and 0 deletions
|
@ -1085,6 +1085,12 @@
|
|||
|
||||
NSTextField * field = upload ? fUploadLimitField : fDownloadLimitField;
|
||||
[field setHidden: setting != NSOnState];
|
||||
if (setting == NSOnState)
|
||||
{
|
||||
[field selectText: self];
|
||||
[[self window] makeKeyAndOrderFront:self];
|
||||
}
|
||||
|
||||
NSTextField * label = upload ? fUploadLimitLabel : fDownloadLimitLabel;
|
||||
[label setHidden: setting != NSOnState];
|
||||
}
|
||||
|
@ -1131,6 +1137,11 @@
|
|||
[torrent setRatioSetting: setting];
|
||||
|
||||
[fRatioLimitField setHidden: setting != NSOnState];
|
||||
if (setting == NSOnState)
|
||||
{
|
||||
[fRatioLimitField selectText: self];
|
||||
[[self window] makeKeyAndOrderFront:self];
|
||||
}
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue