From d19f3cacf4e2c64f93320a92c4edd6405ea3315f Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Wed, 18 Sep 2024 19:44:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=90=AF=E5=8A=A8=E5=90=8E=E5=AF=B9?= =?UTF-8?q?=E5=B7=B2=E6=9C=89=E9=85=8D=E7=BD=AE=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix https://github.com/orgs/MaaAssistantArknights/discussions/10633 --- src/MaaWpfGui/Helper/ConfigurationHelper.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/MaaWpfGui/Helper/ConfigurationHelper.cs b/src/MaaWpfGui/Helper/ConfigurationHelper.cs index cb5a388569..68e3bca0e5 100644 --- a/src/MaaWpfGui/Helper/ConfigurationHelper.cs +++ b/src/MaaWpfGui/Helper/ConfigurationHelper.cs @@ -483,14 +483,8 @@ namespace MaaWpfGui.Helper return true; } - public static List GetConfigurationList() - { - return _kvsMap.Keys.ToList(); - } + public static List GetConfigurationList() => [.. _kvsMap.Keys.OrderBy(key => key)]; - public static string GetCurrentConfiguration() - { - return _current; - } + public static string GetCurrentConfiguration() => _current; } }