diff --git a/Bonsai.Editor/EditorForm.cs b/Bonsai.Editor/EditorForm.cs
index d7a1df4c..23a42ae6 100644
--- a/Bonsai.Editor/EditorForm.cs
+++ b/Bonsai.Editor/EditorForm.cs
@@ -30,6 +30,7 @@ namespace Bonsai.Editor
public partial class EditorForm : Form
{
const float DefaultEditorScale = 1.0f;
+ const string EditorUid = "editor";
const string BonsaiExtension = ".bonsai";
const string BonsaiPackageName = "Bonsai";
const string ExtensionsDirectory = "Extensions";
@@ -2323,7 +2324,7 @@ private async Task OpenDocumentationAsync(string assemblyName, string uid)
var categoryName = GetPackageDisplayName(uid.Substring(0, nameSeparator));
editorControl.ExpandWebView(label: $"{name} ({categoryName})");
}
- else editorControl.ExpandWebView(label: uid);
+ else editorControl.ExpandWebView(label: uid == EditorUid ? Resources.Editor_HelpLabel : uid);
}
else EditorDialog.OpenUrl(url);
}
@@ -2388,7 +2389,8 @@ private async void docsToolStripMenuItem_Click(object sender, EventArgs e)
}
}
- EditorDialog.ShowDocs();
+ var editorAssemblyName = GetType().Assembly.GetName().Name;
+ await OpenDocumentationAsync(editorAssemblyName, EditorUid);
}
private void forumToolStripMenuItem_Click(object sender, EventArgs e)
diff --git a/Bonsai.Editor/Properties/Resources.Designer.cs b/Bonsai.Editor/Properties/Resources.Designer.cs
index e5b34e43..295eb181 100644
--- a/Bonsai.Editor/Properties/Resources.Designer.cs
+++ b/Bonsai.Editor/Properties/Resources.Designer.cs
@@ -192,6 +192,15 @@ internal static string Editor_Error_Caption {
}
}
+ ///
+ /// Looks up a localized string similar to Help.
+ ///
+ internal static string Editor_HelpLabel {
+ get {
+ return ResourceManager.GetString("Editor_HelpLabel", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to The workflow needs to be saved before proceeding. Do you want to save the workflow?.
///
diff --git a/Bonsai.Editor/Properties/Resources.resx b/Bonsai.Editor/Properties/Resources.resx
index 0eb5ce99..d5b31a13 100644
--- a/Bonsai.Editor/Properties/Resources.resx
+++ b/Bonsai.Editor/Properties/Resources.resx
@@ -338,4 +338,7 @@ NOTE: You will have to restart Bonsai for any changes to take effect.
The specified subject definition could not be found.
+
+ Help
+
\ No newline at end of file