Fix new SettingsItem attribute not playing well with non-Drawables

This commit is contained in:
Dean Herbert
2022-04-01 16:00:51 +09:00
parent bfd3406f5f
commit 6afed5e865
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace osu.Game.Overlays.Settings
/// <summary>
/// The source component if this <see cref="SettingsItem{T}"/> was created via <see cref="SettingSourceAttribute"/>.
/// </summary>
public Drawable Source { get; internal set; }
public object SettingSourceObject { get; internal set; }
private IHasCurrentValue<T> controlWithCurrent => Control as IHasCurrentValue<T>;