Browse Source

Break the toolbar Sort / Collapse order tie

SortAssemblyListCommand and CollapseAllCommand both left ToolbarOrder
at its default of 0, so their relative position on the toolbar fell
out of MEF discovery order. Make it explicit: Sort = 0, Collapse = 1.

Assisted-by: Claude:claude-opus-4-7:Claude Code
pull/3755/head
Siegfried Pammer 1 month ago
parent
commit
cb4c3ff95d
  1. 4
      ILSpy/Commands/ViewCommands.cs

4
ILSpy/Commands/ViewCommands.cs

@ -25,7 +25,7 @@ using ILSpy.AssemblyTree; @@ -25,7 +25,7 @@ using ILSpy.AssemblyTree;
namespace ILSpy.Commands
{
[ExportMainMenuCommand(ParentMenuID = nameof(Resources._View), Header = nameof(Resources.SortAssembly_listName), MenuIcon = "Images/Sort", MenuCategory = "Tree", MenuOrder = 10)]
[ExportToolbarCommand(ToolTip = nameof(Resources.SortAssemblyListName), ToolbarIcon = "Images/Sort", ToolbarCategory = nameof(Resources.View))]
[ExportToolbarCommand(ToolTip = nameof(Resources.SortAssemblyListName), ToolbarIcon = "Images/Sort", ToolbarCategory = nameof(Resources.View), ToolbarOrder = 0)]
[Shared]
[method: ImportingConstructor]
sealed class SortAssemblyListCommand(AssemblyTreeModel assemblyTreeModel) : SimpleCommand
@ -34,7 +34,7 @@ namespace ILSpy.Commands @@ -34,7 +34,7 @@ namespace ILSpy.Commands
}
[ExportMainMenuCommand(ParentMenuID = nameof(Resources._View), Header = nameof(Resources._CollapseTreeNodes), MenuIcon = "Images/CollapseAll", MenuCategory = "Tree", MenuOrder = 11)]
[ExportToolbarCommand(ToolTip = nameof(Resources.CollapseTreeNodes), ToolbarIcon = "Images/CollapseAll", ToolbarCategory = nameof(Resources.View))]
[ExportToolbarCommand(ToolTip = nameof(Resources.CollapseTreeNodes), ToolbarIcon = "Images/CollapseAll", ToolbarCategory = nameof(Resources.View), ToolbarOrder = 1)]
[Shared]
[method: ImportingConstructor]
sealed class CollapseAllCommand(AssemblyTreeModel assemblyTreeModel) : SimpleCommand

Loading…
Cancel
Save