mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Remove multiple caching
This commit is contained in:
parent
b2ab46e312
commit
bfbe00e6ec
@ -155,9 +155,6 @@ namespace osu.Game
|
||||
dependencies.CacheAs(ruleset);
|
||||
dependencies.CacheAs<IBindable<RulesetInfo>>(ruleset);
|
||||
|
||||
dependencies.CacheAs(selectedMods);
|
||||
dependencies.CacheAs<IBindable<IEnumerable<Mod>>>(selectedMods);
|
||||
|
||||
// bind config int to database RulesetInfo
|
||||
configRuleset = LocalConfig.GetBindable<int>(OsuSetting.Ruleset);
|
||||
ruleset.Value = RulesetStore.GetRuleset(configRuleset.Value) ?? RulesetStore.AvailableRulesets.First();
|
||||
|
Loading…
Reference in New Issue
Block a user