mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Order collections by name, order character collections by character.
This commit is contained in:
parent
9bceed3d57
commit
12837bbdca
2 changed files with 2 additions and 2 deletions
|
|
@ -147,7 +147,7 @@ public partial class ConfigWindow
|
||||||
|
|
||||||
DrawDefaultCollectionSelector();
|
DrawDefaultCollectionSelector();
|
||||||
|
|
||||||
foreach( var name in Penumbra.CollectionManager.Characters.Keys.ToArray() )
|
foreach( var name in Penumbra.CollectionManager.Characters.Keys.OrderBy( k => k ).ToArray() )
|
||||||
{
|
{
|
||||||
using var id = ImRaii.PushId( name );
|
using var id = ImRaii.PushId( name );
|
||||||
DrawCollectionSelector( string.Empty, _window._inputTextWidth.X, ModCollection.Type.Character, true, name );
|
DrawCollectionSelector( string.Empty, _window._inputTextWidth.X, ModCollection.Type.Character, true, name );
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ public partial class ConfigWindow
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach( var collection in Penumbra.CollectionManager.GetEnumeratorWithEmpty().Skip( withEmpty ? 0 : 1 ) )
|
foreach( var collection in Penumbra.CollectionManager.GetEnumeratorWithEmpty().Skip( withEmpty ? 0 : 1 ).OrderBy( c => c.Name ) )
|
||||||
{
|
{
|
||||||
using var id = ImRaii.PushId( collection.Index );
|
using var id = ImRaii.PushId( collection.Index );
|
||||||
if( ImGui.Selectable( collection.Name, collection == current ) )
|
if( ImGui.Selectable( collection.Name, collection == current ) )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue