Skip to content

Commit

Permalink
Fixes #320
Browse files Browse the repository at this point in the history
Ensures that the first characater is always uppercase when creating the URL help string.
This should work for all mentioned plugins (serialSender, enocean,...)
Only P2_Parser.html should be renamed to P2_parser.html
  • Loading branch information
Martin Deinhofer committed Apr 24, 2020
1 parent bf17f48 commit dc658ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ACS/ACS/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2582,7 +2582,13 @@ private void Help_Click(object sender, RoutedEventArgs e)

private String CreatePluginHelpQueryString(String compTypeValue, String id)
{
if (id == null||compTypeValue==null) return "";

if (id.Substring(0, 9) == "asterics.") id = id.Substring(9, id.Length - 9); // eleminiate prefix
//Convert first letter to upper case, to fix the problem that some plugin names start with a small capital letter.
//See: https://github.com/asterics/AsTeRICS/issues/320
id = id.Substring(0, 1).ToUpper() + id.Substring(1, id.Length-1);

return compTypeValue + "s/" + id + ".html";
}

Expand Down

0 comments on commit dc658ad

Please sign in to comment.