mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
fix current server
This commit is contained in:
parent
549bef1afb
commit
e5698c4c0c
3 changed files with 9 additions and 1 deletions
|
|
@ -138,6 +138,8 @@ public class ConfigurationMigrator : IHostedService
|
|||
var currentServer = serverConfigV0.CurrentServer;
|
||||
var currentServerIdx = Array.IndexOf(serverConfigV0.ServerStorage.Keys.ToArray(), currentServer);
|
||||
|
||||
if (currentServerIdx == -1) currentServerIdx = 0;
|
||||
|
||||
migrated.CurrentServer = currentServerIdx;
|
||||
migrated.ServerStorage = new();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue