mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:35:34 +08:00
Fix lint errors
This commit is contained in:
parent
a575566638
commit
e4cccb5e31
@ -19,7 +19,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
||||
public partial class TestSceneCollectionButton : OsuManualInputManagerTestScene
|
||||
{
|
||||
private CollectionButton collectionButton;
|
||||
private BeatmapInfo beatmapInfo = new BeatmapInfo { OnlineID = 88 };
|
||||
private readonly BeatmapInfo beatmapInfo = new BeatmapInfo { OnlineID = 88 };
|
||||
|
||||
[SetUpSteps]
|
||||
public void SetUpSteps()
|
||||
|
@ -24,7 +24,6 @@ namespace osu.Game.Tests.Visual.Ranking
|
||||
|
||||
private DummyAPIAccess dummyAPI => (DummyAPIAccess)API;
|
||||
|
||||
|
||||
[SetUpSteps]
|
||||
public void SetUpSteps()
|
||||
{
|
||||
|
@ -17,15 +17,16 @@ namespace osu.Game.Screens.Ranking
|
||||
{
|
||||
public partial class CollectionPopover : OsuPopover
|
||||
{
|
||||
private OsuMenu menu;
|
||||
private readonly BeatmapInfo beatmapInfo;
|
||||
|
||||
[Resolved]
|
||||
private RealmAccess realm { get; set; } = null!;
|
||||
[Resolved]
|
||||
private ManageCollectionsDialog? manageCollectionsDialog { get; set; }
|
||||
|
||||
public CollectionPopover(BeatmapInfo beatmapInfo) : base(false)
|
||||
[Resolved]
|
||||
private ManageCollectionsDialog manageCollectionsDialog { get; set; }
|
||||
|
||||
public CollectionPopover(BeatmapInfo beatmapInfo)
|
||||
: base(false)
|
||||
{
|
||||
this.beatmapInfo = beatmapInfo;
|
||||
}
|
||||
@ -38,7 +39,7 @@ namespace osu.Game.Screens.Ranking
|
||||
|
||||
Children = new[]
|
||||
{
|
||||
menu = new OsuMenu(Direction.Vertical, true)
|
||||
new OsuMenu(Direction.Vertical, true)
|
||||
{
|
||||
Items = items,
|
||||
},
|
||||
@ -56,9 +57,9 @@ namespace osu.Game.Screens.Ranking
|
||||
get
|
||||
{
|
||||
var collectionItems = realm.Realm.All<BeatmapCollection>()
|
||||
.OrderBy(c => c.Name)
|
||||
.AsEnumerable()
|
||||
.Select(c => new CollectionToggleMenuItem(c.ToLive(realm), beatmapInfo)).Cast<OsuMenuItem>().ToList();
|
||||
.OrderBy(c => c.Name)
|
||||
.AsEnumerable()
|
||||
.Select(c => new CollectionToggleMenuItem(c.ToLive(realm), beatmapInfo)).Cast<OsuMenuItem>().ToList();
|
||||
|
||||
if (manageCollectionsDialog != null)
|
||||
collectionItems.Add(new OsuMenuItem("Manage...", MenuItemType.Standard, manageCollectionsDialog.Show));
|
||||
|
@ -79,8 +79,7 @@ namespace osu.Game.Screens.Ranking
|
||||
|
||||
private void getBeatmapSet()
|
||||
{
|
||||
GetBeatmapSetRequest beatmapSetRequest;
|
||||
beatmapSetRequest = new GetBeatmapSetRequest(BeatmapSetInfo.OnlineID);
|
||||
GetBeatmapSetRequest beatmapSetRequest = new GetBeatmapSetRequest(BeatmapSetInfo.OnlineID);
|
||||
|
||||
loading.Show();
|
||||
beatmapSetRequest.Success += beatmapSet =>
|
||||
@ -103,7 +102,6 @@ namespace osu.Game.Screens.Ranking
|
||||
|
||||
private void toggleFavouriteStatus()
|
||||
{
|
||||
|
||||
Enabled.Value = false;
|
||||
loading.Show();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user