Skip to content

Commit

Permalink
about menu item was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Oct 24, 2023
1 parent c8ae523 commit 51630ef
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/GUI/EFCorePowerTools/EFCorePowerToolsPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ private async void OnProjectMenuBeforeQueryStatus(object sender, EventArgs e)

menuCommand.Visible = false;

if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidDbDgml)
if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidDbDgml
|| menuCommand.CommandID.ID == PkgCmdIDList.cmdidAbout)
{
menuCommand.Visible = true;
return;
Expand All @@ -341,7 +342,8 @@ private async void OnProjectMenuBeforeQueryStatus(object sender, EventArgs e)
return;
}

if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidReverseEngineerCodeFirst)
if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidReverseEngineerCodeFirst
|| menuCommand.CommandID.ID == PkgCmdIDList.cmdidT4Drop)
{
menuCommand.Visible = await project.IsNet60OrHigherAsync() || await project.IsNetStandardAsync();
return;
Expand All @@ -358,11 +360,6 @@ private async void OnProjectMenuBeforeQueryStatus(object sender, EventArgs e)
&& await project.IsInstalledAsync(new NuGetPackage { PackageId = "Microsoft.EntityFrameworkCore" });
return;
}

if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidT4Drop)
{
menuCommand.Visible = await project.IsNet60OrHigherAsync();
}
}

#pragma warning disable VSTHRD100 // Avoid async void methods
Expand Down

0 comments on commit 51630ef

Please sign in to comment.