]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix PlayerListControl re-raising selection changed when repopulated. (#25412)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Tue, 20 Feb 2024 13:01:28 +0000 (14:01 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2024 13:01:28 +0000 (14:01 +0100)
commit84d455b9f862dcbfdffd5827ceab4890dcf653cc
tree169c2a0c9cf4ca14971f3e948a0bf7afc8c09932
parentbd40c0ce2696211d13a89b394167c227cfdb6fcd
Fix PlayerListControl re-raising selection changed when repopulated. (#25412)

Now we just skip duplicate "item pressed" events from the ListContainer.

This caused the ahelp window to unfocus the message box after sending something. Flow is something like this: you send ahelp -> bwoink window refreshes player list due to new bwoink -> repopulated player list -> sent selection change -> repopulates right pane -> line edit gets unfocused.
Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs