1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 21:52:56 +08:00

Style fixes

This commit is contained in:
WebFreak001 2018-11-28 12:49:17 +01:00
parent c4c2191500
commit 89ded824b3

View File

@ -1,7 +1,6 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using osu.Framework.Allocation; using osu.Framework.Allocation;
@ -86,7 +85,7 @@ namespace osu.Game.Overlays.Settings.Sections
private void randomizeSkin() private void randomizeSkin()
{ {
int n = usableSkins.Count(); int n = usableSkins.Count;
if (n > 1) if (n > 1)
configBindable.Value = (configBindable.Value + RNG.Next(n - 1) + 1) % n; // make sure it's always a different one configBindable.Value = (configBindable.Value + RNG.Next(n - 1) + 1) % n; // make sure it's always a different one
else else
@ -107,7 +106,7 @@ namespace osu.Game.Overlays.Settings.Sections
private void resetSkinButtons() private void resetSkinButtons()
{ {
skinDropdown.Items = usableSkins.Count() > 1 ? usableSkins.Concat(new[] { random_skin_info }) : usableSkins; skinDropdown.Items = usableSkins.Count > 1 ? usableSkins.Concat(new[] { random_skin_info }) : usableSkins;
} }
protected override void Dispose(bool isDisposing) protected override void Dispose(bool isDisposing)