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:
parent
27163a5133
commit
ed07b779b1
@ -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)),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user