mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 00:42:55 +08:00
Disallow expired items from showing delete button
This isn't possible in practice since expired items are removed from the queue list, but this helps out in tests.
This commit is contained in:
parent
51b7e920c0
commit
a34d24fb20
@ -83,8 +83,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match.Playlist
|
|||||||
|
|
||||||
bool isItemOwner = Item.OwnerID == api.LocalUser.Value.OnlineID || multiplayerClient.IsHost;
|
bool isItemOwner = Item.OwnerID == api.LocalUser.Value.OnlineID || multiplayerClient.IsHost;
|
||||||
|
|
||||||
AllowDeletion = isItemOwner && Item.ID != multiplayerClient.Room.Settings.PlaylistItemId;
|
AllowDeletion = isItemOwner && !Item.Expired && Item.ID != multiplayerClient.Room.Settings.PlaylistItemId;
|
||||||
AllowEditing = isItemOwner;
|
AllowEditing = isItemOwner && !Item.Expired;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user