From ba776ea35d522390a0ef67b6a440575aeafec6ab Mon Sep 17 00:00:00 2001 From: hawkeye Date: Mon, 18 Apr 2022 00:52:43 -0400 Subject: [PATCH] Version 3.3 --- FsConnector/SimConnector.cs | 1 + Provider/SimConnectManager.cs | 1 + WpfApp/ApplicationWindow.xaml | 2 +- WpfApp/PreferencesDialog.xaml | 27 ++++++++++++++++----- WpfApp/PreferencesDialog.xaml.cs | 7 +----- WpfApp/ViewModel/PanelSelectionViewModel.cs | 1 - 6 files changed, 25 insertions(+), 14 deletions(-) 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 @@ - +