This changes the `ToolbarItem` constructor's `name` parameter to `text`, to match the non-obsolete `Text` that gets the value. Without the change, it's confusing when tracing data flow related to `Text`, since it doesn't appear at first that it's being set.
{
}
- public ToolbarItem(string name, string icon, Action activated, ToolbarItemOrder order = ToolbarItemOrder.Default, int priority = 0)
+ public ToolbarItem(string text, string icon, Action activated, ToolbarItemOrder order = ToolbarItemOrder.Default, int priority = 0)
{
if (activated == null)
throw new ArgumentNullException("activated");
- Text = name;
+ Text = text;
Icon = icon;
Clicked += (s, e) => activated();
Order = order;
remove { Clicked -= value; }
}
}
-}
\ No newline at end of file
+}