Skip to content

Commit

Permalink
Fixing wrong placeholders in string (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
DocMoebiuz authored Feb 12, 2023
1 parent 27f2ee7 commit a17cf88
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions MobiFlight/MobiFlightCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ private static List<PortDetails> getSupportedPorts()
{
// Issue #1122: A corrupted WMI registry caused exceptions when attempting to enumerate connected devices with searcher.Get().
// Running "winmgmt /resetrepository" fixed it.
Log.Instance.log($"Unable to read connected devices. This is usually caused by a corrupted WMI registry. Run 'winmgmt /resetrepository' from an elevated command line to resolve the issue. (${ex.Message})", LogSeverity.Error);
Log.Instance.log($"Unable to read connected devices. This is usually caused by a corrupted WMI registry. Run 'winmgmt /resetrepository' from an elevated command line to resolve the issue. ({ex.Message})", LogSeverity.Error);
}
catch (Exception ex)
{
Log.Instance.log($"Unable to read connected devices: ${ex.Message}", LogSeverity.Error);
Log.Instance.log($"Unable to read connected devices: {ex.Message}", LogSeverity.Error);
}
return result;
}
Expand Down
2 changes: 0 additions & 2 deletions SimConnectMSFS/SimConnectCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ internal void Start()

private void SimConnectCache_OnRecvClientData(SimConnect sender, SIMCONNECT_RECV_CLIENT_DATA data)
{


if (data.dwRequestID != 0)
{
var simData = (ClientDataValue)(data.dwData[0]);
Expand Down
2 changes: 1 addition & 1 deletion UI/Dialogs/ConfigWizard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ protected void _AddJoysticks(List<ListItem> DisplayModuleList)

DisplayModuleList.Add(new ListItem()
{
Value = $"{joystick.Name} ${SerialNumber.SerialSeparator}${joystick.Serial}",
Value = $"{joystick.Name} {SerialNumber.SerialSeparator}{joystick.Serial}",
Label = $"{joystick.Name}"
});

Expand Down
12 changes: 6 additions & 6 deletions UI/Dialogs/InputConfigWizard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void initWithArcazeCache(ArcazeCache arcazeCache)
arcazeFirmware[module.Serial] = module.Version;

PreconditionModuleList.Add(new ListItem() {
Value = $"{module.Name}${SerialNumber.SerialSeparator}{module.Serial}",
Value = $"{module.Name}{SerialNumber.SerialSeparator}{module.Serial}",
Label = $"{module.Name} ({module.Serial})"
});
}
Expand All @@ -196,7 +196,7 @@ public void initWithArcazeCache(ArcazeCache arcazeCache)
{
inputModuleNameComboBox.Items.Add(new ListItem()
{
Value = $"{module.Name}${SerialNumber.SerialSeparator}{module.Serial}",
Value = $"{module.Name}{SerialNumber.SerialSeparator}{module.Serial}",
Label = $"{module.Name} ({module.Port})"
});
}
Expand All @@ -206,7 +206,7 @@ public void initWithArcazeCache(ArcazeCache arcazeCache)
if (joystick.GetAvailableDevices().Count > 0)
inputModuleNameComboBox.Items.Add(new ListItem()
{
Value = $"{joystick.Name} ${SerialNumber.SerialSeparator}{joystick.Serial}",
Value = $"{joystick.Name} {SerialNumber.SerialSeparator}{joystick.Serial}",
Label = $"{joystick.Name}"
});
}
Expand All @@ -230,8 +230,8 @@ public void initWithoutArcazeCache()
{
inputModuleNameComboBox.Items.Add(new ListItem()
{
Value = $"{module.Name}${SerialNumber.SerialSeparator}{module.Serial}",
Label = $"{module.Name}${SerialNumber.SerialSeparator}({module.Port})"
Value = $"{module.Name}{SerialNumber.SerialSeparator}{module.Serial}",
Label = $"{module.Name}{SerialNumber.SerialSeparator}({module.Port})"
});
// preconditionPinSerialComboBox.Items.Add(module.Name + "/ " + module.Serial);
}
Expand All @@ -240,7 +240,7 @@ public void initWithoutArcazeCache()
{
inputModuleNameComboBox.Items.Add(new ListItem()
{
Value = $"{joystick.Name} ${SerialNumber.SerialSeparator}{joystick.Serial}",
Value = $"{joystick.Name} {SerialNumber.SerialSeparator}{joystick.Serial}",
Label = $"{joystick.Name}"
});
}
Expand Down

0 comments on commit a17cf88

Please sign in to comment.