mirror of
https://github.com/ppy/osu
synced 2025-01-02 12:22:13 +00:00
Fix delete button being able to show on current item
This commit is contained in:
parent
32fbaf47c0
commit
51b7e920c0
@ -78,9 +78,12 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match.Playlist
|
||||
|
||||
private void updateDeleteButtonVisibility()
|
||||
{
|
||||
if (multiplayerClient.Room == null)
|
||||
return;
|
||||
|
||||
bool isItemOwner = Item.OwnerID == api.LocalUser.Value.OnlineID || multiplayerClient.IsHost;
|
||||
|
||||
AllowDeletion = isItemOwner && SelectedItem.Value != Item;
|
||||
AllowDeletion = isItemOwner && Item.ID != multiplayerClient.Room.Settings.PlaylistItemId;
|
||||
AllowEditing = isItemOwner;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user