mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00: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