fix sorting in syncshells, display owner properly, display mod popup for syncshells, order world list by name

This commit is contained in:
rootdarkarchon
2023-01-29 17:38:01 +01:00
parent 49bf5bcf13
commit d47b4f52ec
4 changed files with 40 additions and 23 deletions

View File

@@ -259,7 +259,7 @@ public class SettingsUi : Window, IDisposable
_serverConfigurationManager.Save();
}
var worldIdx = (ushort)item.WorldId;
var data = _uiShared.WorldData;
var data = _uiShared.WorldData.OrderBy(u => u.Value, StringComparer.Ordinal).ToDictionary(k => k.Key, k => k.Value);
if (!data.TryGetValue(worldIdx, out string? worldPreview))
{
worldPreview = data.First().Value;