[FIX] XGUI: Player list on the Cmds tab was not sorted alphabetically.

This commit is contained in:
SticklyMan 2018-02-04 02:34:47 -07:00
parent b3815da088
commit 7e9438d9ba
3 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@
## v3.74 - *(00/00/00)*
* [CHANGE] Muted players can no longer use psay (thanks, PixeLInc).
* [FIX] Don't respawn when done spectating if the user was not alive to start with (Thanks, PixeLInc).
* [FIX] XGUI: Player list on the Cmds tab was not sorted alphabetically.
## v3.73 - *(03/21/17)*
* [CHANGE] Setting an ULX cvar now no longer needless routes the cvar change through the console.

View File

@ -98,6 +98,7 @@ function cmds.refreshPlist( arg )
cmds.plist:Clear()
cmds.plist:SetMultiSelect( arg.type == ULib.cmds.PlayersArg )
for _, ply in ipairs( targets ) do
local line = cmds.plist:AddLine( ply:Nick(), ply:GetUserGroup() )
line.ply = ply
@ -122,6 +123,9 @@ function cmds.refreshPlist( arg )
cmds.plist:SelectItem( line )
end
end
cmds.plist:SortByColumn( 1, false )
--Select only the first item if multiselect is disabled.
if not cmds.plist:GetMultiSelect() then
local firstSelected = cmds.plist:GetSelected()[1]

View File

@ -1 +1 @@
1509911839
1517736887