diff --git a/FsConnector/SimConnector.cs b/FsConnector/SimConnector.cs index 02593b2..ec63d47 100644 --- a/FsConnector/SimConnector.cs +++ b/FsConnector/SimConnector.cs @@ -139,6 +139,7 @@ namespace MSFSPopoutPanelManager.FsConnector { OnDisconnected?.Invoke(this, null); + StopAndReconnect(); // Try to reconnect again _timer.Enabled = true; } diff --git a/Provider/SimConnectManager.cs b/Provider/SimConnectManager.cs index 74827e4..e9e6b37 100644 --- a/Provider/SimConnectManager.cs +++ b/Provider/SimConnectManager.cs @@ -130,6 +130,7 @@ namespace MSFSPopoutPanelManager.Provider if (_lastSystemEvent == SimConnectSystemEvent.SIMSTART && systemEvent == SimConnectSystemEvent.VIEW && dwData == 4) { _isSimActive = true; + _lastSystemEvent = SimConnectSystemEvent.NONE; OnFlightStarted?.Invoke(this, null); return; } diff --git a/WpfApp/ApplicationWindow.xaml b/WpfApp/ApplicationWindow.xaml index 1bd391e..34dbd62 100644 --- a/WpfApp/ApplicationWindow.xaml +++ b/WpfApp/ApplicationWindow.xaml @@ -65,7 +65,7 @@ - +