From 7786fb421adc885ded106c4f7859457670d6a10c Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Mon, 29 Jul 2024 23:12:00 +0200 Subject: [PATCH] DeliveryAdminWindow: Fix scale button ordering --- Elwig/Helpers/Config.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elwig/Helpers/Config.cs b/Elwig/Helpers/Config.cs index aeae8f6..1c823c4 100644 --- a/Elwig/Helpers/Config.cs +++ b/Elwig/Helpers/Config.cs @@ -87,7 +87,7 @@ namespace Elwig.Helpers { SmtpPassword = config["smtp:password"]; SmtpFrom = config["smtp:from"]; - var scales = config.AsEnumerable().Where(i => i.Key.StartsWith("scale.")).GroupBy(i => i.Key.Split(':')[0][6..]).Select(i => i.Key); + var scales = config.AsEnumerable().Where(i => i.Key.StartsWith("scale.")).GroupBy(i => i.Key.Split(':')[0][6..]).Select(i => i.Key).Order(); ScaleList.Clear(); Scales = ScaleList; foreach (var s in scales) {