1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 14:22:55 +08:00

Only show random skin button with more than one skin

This commit is contained in:
WebFreak001 2018-11-25 14:23:53 +01:00
parent 6a9187ece0
commit edb45e4e47

View File

@ -68,7 +68,10 @@ namespace osu.Game.Overlays.Settings.Sections
usableSkins = skins.GetAllUsableSkins().ToArray();
skinDropdown.Bindable = dropdownBindable;
skinDropdown.Items = usableSkins.Concat(new[] { random_skin_info });
if (usableSkins.Length > 1)
skinDropdown.Items = usableSkins.Concat(new[] { random_skin_info });
else
skinDropdown.Items = usableSkins;
// Todo: This should not be necessary when OsuConfigManager is databased
if (skinDropdown.Items.All(s => s.ID != configBindable.Value))