chore: 启动后对已有配置排序

fix https://github.com/orgs/MaaAssistantArknights/discussions/10633
This commit is contained in:
uye
2024-09-18 19:44:07 +08:00
parent 2829455fa2
commit d19f3cacf4

View File

@@ -483,14 +483,8 @@ namespace MaaWpfGui.Helper
return true;
}
public static List<string> GetConfigurationList()
{
return _kvsMap.Keys.ToList();
}
public static List<string> GetConfigurationList() => [.. _kvsMap.Keys.OrderBy(key => key)];
public static string GetCurrentConfiguration()
{
return _current;
}
public static string GetCurrentConfiguration() => _current;
}
}