mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
Improve naming around the config lookup with fallback private method.
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
8b95817f7a
commit
562634dfd2
@ -93,10 +93,10 @@ namespace osu.Game.Skinning
|
||||
return fallbackSource?.GetConfig<TLookup, TValue>(lookup);
|
||||
}
|
||||
|
||||
private IBindable<TValue> getBindable<TLookup, TValue>(TLookup lookup, bool bindableReturnCheck)
|
||||
private IBindable<TValue> lookupWithFallback<TLookup, TValue>(TLookup lookup, bool canUseSkinLookup)
|
||||
{
|
||||
var bindable = skin.GetConfig<TLookup, TValue>(lookup);
|
||||
if (bindable != null && bindableReturnCheck)
|
||||
if (bindable != null && canUseSkinLookup)
|
||||
return bindable;
|
||||
else
|
||||
return fallbackSource?.GetConfig<TLookup, TValue>(lookup);
|
||||
|
Loading…
Reference in New Issue
Block a user