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:
parent
6a9187ece0
commit
edb45e4e47
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user