From b6847bb563ad9b7ddb03f491b22388e34cf53f9d Mon Sep 17 00:00:00 2001 From: Sebastian M Date: Fri, 27 Jan 2023 18:42:25 +0100 Subject: [PATCH] Provide correct error label when xplane connection is missing (#1100) --- MobiFlight/ExecutionManager.cs | 2 +- ProjectMessages/ProjectMessages.Designer.cs | 9 +++++++++ ProjectMessages/ProjectMessages.de.resx | 4 ++++ ProjectMessages/ProjectMessages.resx | 3 +++ UI/Panels/OutputConfigPanel.cs | 9 ++------- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/MobiFlight/ExecutionManager.cs b/MobiFlight/ExecutionManager.cs index 6dd272591..aafcdd221 100644 --- a/MobiFlight/ExecutionManager.cs +++ b/MobiFlight/ExecutionManager.cs @@ -464,7 +464,7 @@ private void ExecuteConfig() // If not connected to X-Plane show an error message if (cfg.SourceType == SourceType.XPLANE && !xplaneCache.IsConnected()) { - row.ErrorText = i18n._tr("uiMessageNoSimConnectConnection"); + row.ErrorText = i18n._tr("uiMessageNoXplaneConnection"); } // In any other case remove the error message else diff --git a/ProjectMessages/ProjectMessages.Designer.cs b/ProjectMessages/ProjectMessages.Designer.cs index 4a6589990..3b7e71b5b 100644 --- a/ProjectMessages/ProjectMessages.Designer.cs +++ b/ProjectMessages/ProjectMessages.Designer.cs @@ -974,6 +974,15 @@ internal static string uiMessageNoUpdateNecessary { } } + /// + /// Looks up a localized string similar to No active X-Plane connection. + /// + internal static string uiMessageNoXplaneConnection { + get { + return ResourceManager.GetString("uiMessageNoXplaneConnection", resourceCulture); + } + } + /// /// Looks up a localized string similar to The value must be a number and greater than 0.. /// diff --git a/ProjectMessages/ProjectMessages.de.resx b/ProjectMessages/ProjectMessages.de.resx index f56ed8644..16b4e18ab 100644 --- a/ProjectMessages/ProjectMessages.de.resx +++ b/ProjectMessages/ProjectMessages.de.resx @@ -574,4 +574,8 @@ Please manually flash the boards using "upload firmware" and select the correct Board zurücksetzen + + Keine aktive X-Plane Verbindung + No active X-Plane connection + \ No newline at end of file diff --git a/ProjectMessages/ProjectMessages.resx b/ProjectMessages/ProjectMessages.resx index a56fccc49..21767a5cd 100644 --- a/ProjectMessages/ProjectMessages.resx +++ b/ProjectMessages/ProjectMessages.resx @@ -571,4 +571,7 @@ Check log for more details. Reset Board + + No active X-Plane connection + \ No newline at end of file diff --git a/UI/Panels/OutputConfigPanel.cs b/UI/Panels/OutputConfigPanel.cs index e769c6c15..adae95900 100644 --- a/UI/Panels/OutputConfigPanel.cs +++ b/UI/Panels/OutputConfigPanel.cs @@ -1,14 +1,9 @@ -using System; +using MobiFlight.UI.Dialogs; +using System; using System.Collections.Generic; using System.ComponentModel; -using System.Drawing; using System.Data; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Windows.Forms; -using MobiFlight.UI.Dialogs; -using MobiFlight.Base; namespace MobiFlight.UI.Panels {