1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

fix SortDirection default to descending when retrieved data is ascending

This commit is contained in:
Aergwyn 2018-01-03 17:53:50 +01:00
parent 0e361aefeb
commit 988f6ac901
2 changed files with 10 additions and 1 deletions

View File

@ -1,13 +1,22 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using osu.Game.Overlays;
using osu.Game.Overlays.Social;
using osu.Game.Users;
namespace osu.Game.Tests.Visual
{
public class TestCaseSocial : OsuTestCase
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(FilterControl),
typeof(SocialOverlay)
};
public TestCaseSocial()
{
SocialOverlay s = new SocialOverlay

View File

@ -204,7 +204,7 @@ namespace osu.Game.Overlays
public enum SortDirection
{
Descending,
Ascending,
Descending
}
}