Skip to content

Commit

Permalink
using "Global" instead of "Other" when method is in the global namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Pignatelli authored and adecler committed Oct 17, 2019
1 parent fd72dc9 commit 955dfb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BHoM_UI/Templates/MethodCaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ protected virtual void SetCategory()
{
Category = "Other";
string nameSpace = Method.DeclaringType.Namespace;
if (nameSpace != null && nameSpace.Length >= 2 && nameSpace.StartsWith("BH"))
if (nameSpace != null)
Category = "Global";
if (nameSpace.Length >= 2 && nameSpace.StartsWith("BH"))
Category = nameSpace.Split('.')[1];
}
}
Expand Down

0 comments on commit 955dfb1

Please sign in to comment.