Skip to content

Commit

Permalink
move to ToolStripDropDownButton
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jul 13, 2021
1 parent b8a9ce4 commit e109832
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
Binary file modified src/DiffEngineTray.Tests/MenuBuilderTest.Full.verified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/DiffEngineTray.Tests/MenuBuilderTest.FullGrouped.verified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/DiffEngineTray.Tests/MenuBuilderTest.Grouped.verified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/DiffEngineTray.Tests/MenuBuilderTest.Many.verified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/DiffEngineTray.Tests/MenuBuilderTest.OnlyDelete.verified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/DiffEngineTray.Tests/MenuBuilderTest.OnlyMove.verified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/DiffEngineTray/MenuBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static IEnumerable<ToolStripItem> BuildMovesAndDeletes(string? name, Tracker tra

static ToolStripItem BuildDelete(TrackedDelete delete, Action accept)
{
var menu = new ToolStripMenuItem($"{delete.Name}");
var menu = new ToolStripDropDownButton($"{delete.Name}");
menu.DropDownDirection = ToolStripDropDownDirection.Left;
menu.DropDownItems.Add(new MenuButton("Accept delete", accept));
menu.DropDownItems.Add(BuildShowInExplorer(delete.File));
Expand All @@ -156,7 +156,7 @@ static ToolStripItem BuildDelete(TrackedDelete delete, Action accept)

static ToolStripItem BuildMove(TrackedMove move, Action accept)
{
var menu = new ToolStripMenuItem($"{move.Name} ({move.Extension})");
var menu = new ToolStripDropDownButton($"{move.Name} ({move.Extension})");
menu.DropDownDirection = ToolStripDropDownDirection.Left;
menu.DropDownItems.Add(new MenuButton("Accept move", accept));
if (move.Exe != null)
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591;CS0649</NoWarn>
<Version>6.9.0</Version>
<Version>6.9.1</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Testing, Snapshot, Diff, Compare</PackageTags>
<Description>Launches diff tools based on file extensions. Designed to be consumed by snapshot testing libraries.</Description>
Expand Down

0 comments on commit e109832

Please sign in to comment.