]> git.smokeofanarchy.ru Git - space-station-14.git/commit
PlayerListControl fixes. (#25248)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Tue, 20 Feb 2024 09:13:48 +0000 (10:13 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2024 09:13:48 +0000 (10:13 +0100)
commit74a31ac5f3316cc865ab9f39f39efff4e0b9e748
tree46f7672dd598be3bcc32c58e68b611bebc9df069
parent2e6eaa45c57c7f5ba561d1fb1ef6712d2432a8fa
PlayerListControl fixes. (#25248)

* PlayerListControl fixes.

Fix a button being selected by default always, which then can't be selected properly for real. This affected multiple admin UIs.

This broke due to upstream RT changes but ButtonGroup was always kinda busted so whatever. Uses the new IsNoneSetAllowed to implement everything properly.

Also make sure the selected player STAYS selected when filtering the list and stuff.

Also this PlayerInfo record has been changed to only do equality on the User ID because otherwise it'd need to compare each field individually which would be weird.

* Revert changes to ListContainer

This change was made default in the engine, no longer necessary here.
Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs
Content.Shared/Administration/PlayerInfo.cs