Skip to content

Commit bb6787b

Browse files
committedJan 24, 2023
Sort penumbra collections list
1 parent f98a56e commit bb6787b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎Brio/Game/Actor/PenumbraCollectionService.cs

+6-3
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,14 @@ public void RefreshCollections()
6767
return;
6868
}
6969

70-
var collections = Ipc.GetCollections.Subscriber(Dalamud.PluginInterface).Invoke();
71-
var defaultCollection = Ipc.GetDefaultCollectionName.Subscriber(Dalamud.PluginInterface).Invoke();
70+
var defaultCollection = Ipc.GetDefaultCollectionName.Subscriber(Dalamud.PluginInterface).Invoke();
71+
var rawUserCollections = Ipc.GetCollections.Subscriber(Dalamud.PluginInterface).Invoke();
72+
var userCollections = new List<string>(rawUserCollections);
73+
userCollections.Sort(StringComparer.OrdinalIgnoreCase);
74+
7275
Collections.Add(defaultCollection);
7376
Collections.Add("None");
74-
Collections.AddRange(collections);
77+
Collections.AddRange(userCollections);
7578
}
7679

7780
private void CleanupOverrides()

0 commit comments

Comments
 (0)
Please sign in to comment.