mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
when changing the global ratio setting, reload the main table right away
This commit is contained in:
parent
e3695e1a8e
commit
0f46306f77
2 changed files with 9 additions and 0 deletions
|
@ -90,6 +90,9 @@
|
||||||
{
|
{
|
||||||
tr_sessionSetRatioLimited(fHandle, [fDefaults boolForKey: @"RatioCheck"]);
|
tr_sessionSetRatioLimited(fHandle, [fDefaults boolForKey: @"RatioCheck"]);
|
||||||
|
|
||||||
|
//reload main table for seeding progress
|
||||||
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil];
|
||||||
|
|
||||||
//reload global settings in inspector
|
//reload global settings in inspector
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGlobalOptions" object: nil];
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGlobalOptions" object: nil];
|
||||||
}
|
}
|
||||||
|
@ -102,6 +105,9 @@
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateRatioStopValueOutsidePrefs" object: nil];
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateRatioStopValueOutsidePrefs" object: nil];
|
||||||
|
|
||||||
|
//reload main table for seeding progress
|
||||||
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil];
|
||||||
|
|
||||||
//reload global settings in inspector
|
//reload global settings in inspector
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGlobalOptions" object: nil];
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGlobalOptions" object: nil];
|
||||||
}
|
}
|
||||||
|
|
|
@ -612,6 +612,9 @@ tr_session * fHandle;
|
||||||
tr_sessionSetRatioLimited(fHandle, [fDefaults boolForKey: @"RatioCheck"]);
|
tr_sessionSetRatioLimited(fHandle, [fDefaults boolForKey: @"RatioCheck"]);
|
||||||
tr_sessionSetRatioLimit(fHandle, [fDefaults floatForKey: @"RatioLimit"]);
|
tr_sessionSetRatioLimit(fHandle, [fDefaults floatForKey: @"RatioLimit"]);
|
||||||
|
|
||||||
|
//reload main table for seeding progress
|
||||||
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil];
|
||||||
|
|
||||||
//reload global settings in inspector
|
//reload global settings in inspector
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGlobalOptions" object: nil];
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGlobalOptions" object: nil];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue