fix adding new secret key when order in dictionary is jumbled for some god forsaken reason
This commit is contained in:
2
MareAPI
2
MareAPI
Submodule MareAPI updated: 22346739d2...8a7640c1a1
@@ -852,7 +852,7 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
if (UiSharedService.IconTextButton(FontAwesomeIcon.Plus, "Add new Secret Key"))
|
if (UiSharedService.IconTextButton(FontAwesomeIcon.Plus, "Add new Secret Key"))
|
||||||
{
|
{
|
||||||
selectedServer.SecretKeys.Add(selectedServer.SecretKeys.LastOrDefault().Key + 1, new SecretKey()
|
selectedServer.SecretKeys.Add(selectedServer.SecretKeys.Max(p => p.Key) + 1, new SecretKey()
|
||||||
{
|
{
|
||||||
FriendlyName = "New Secret Key",
|
FriendlyName = "New Secret Key",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user