Skip to content

Commit

Permalink
Provide correct error label when xplane connection is missing (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
DocMoebiuz authored Jan 27, 2023
1 parent 083ab34 commit b6847bb
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion MobiFlight/ExecutionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions ProjectMessages/ProjectMessages.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions ProjectMessages/ProjectMessages.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -574,4 +574,8 @@ Please manually flash the boards using "upload firmware" and select the correct
<data name="uiMessageResetHint" xml:space="preserve">
<value>Board zurücksetzen</value>
</data>
<data name="uiMessageNoXplaneConnection" xml:space="preserve">
<value>Keine aktive X-Plane Verbindung</value>
<comment>No active X-Plane connection</comment>
</data>
</root>
3 changes: 3 additions & 0 deletions ProjectMessages/ProjectMessages.resx
Original file line number Diff line number Diff line change
Expand Up @@ -571,4 +571,7 @@ Check log for more details.</value>
<data name="uiMessageResetHint" xml:space="preserve">
<value>Reset Board</value>
</data>
<data name="uiMessageNoXplaneConnection" xml:space="preserve">
<value>No active X-Plane connection</value>
</data>
</root>
9 changes: 2 additions & 7 deletions UI/Panels/OutputConfigPanel.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down

0 comments on commit b6847bb

Please sign in to comment.