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

Update to use score.ID identify local scores

This commit is contained in:
Willy Tu 2019-12-18 21:54:02 -08:00
parent 27163a5133
commit ed07b779b1
2 changed files with 3 additions and 7 deletions

View File

@ -374,13 +374,10 @@ namespace osu.Game.Online.Leaderboards
public MenuItem[] ContextMenuItems
{
get
get => (score.ID == 0) ? null : new MenuItem[]
{
return (allowHighlight) ? null : new MenuItem[]
{
new OsuMenuItem("Delete", MenuItemType.Destructive, () => deleteLocalScore(score)),
};
}
new OsuMenuItem("Delete", MenuItemType.Destructive, () => deleteLocalScore(score)),
};
}
}
}

View File

@ -7,7 +7,6 @@ using osu.Game.Scoring;
using System;
using System.Diagnostics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Logging;
namespace osu.Game.Screens.Select
{