update progress bar when seeding immediately when the stop ratio setting is changed

This commit is contained in:
Mitchell Livingston
2007-03-22 19:16:08 +00:00
parent 92637d591e
commit 1c0e5ca701
9 changed files with 33 additions and 16 deletions

View File

@@ -340,12 +340,19 @@
}
}
- (void) applyRatioSetting: (id) sender
{
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil];
}
- (void) updateRatioStopField
{
if (!fHasLoaded)
return;
[fRatioStopField setFloatValue: [fDefaults floatForKey: @"RatioLimit"]];
[self applyRatioSetting: nil];
}
- (void) setRatioStop: (id) sender
@@ -359,6 +366,8 @@
}
[fDefaults setFloat: ratio forKey: @"RatioLimit"];
[self applyRatioSetting: nil];
}
- (void) updateLimitFields