fixes for changing servers

This commit is contained in:
Stanley Dimant
2022-07-03 14:20:30 +02:00
parent 6d08b53ab3
commit bb7e64b13d
2 changed files with 2 additions and 0 deletions

View File

@@ -124,6 +124,7 @@ public class OnlinePlayerManager : IDisposable
_apiController.PairedWithOther -= ApiControllerOnPairedWithOther;
_apiController.UnpairedFromOther -= ApiControllerOnUnpairedFromOther;
_apiController.Disconnected -= ApiControllerOnDisconnected;
_apiController.Connected -= ApiControllerOnConnected;
_ipcManager.PenumbraDisposed -= ApiControllerOnDisconnected;

View File

@@ -171,6 +171,7 @@ namespace MareSynchronos.UI
{
_pluginConfiguration.ApiUri = _apiController.ServerDictionary.Single(k => k.Value == comboEntries[i]).Key;
_pluginConfiguration.Save();
_ = _apiController.CreateConnections();
}
if (isSelected)