Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Mar 19, 2024
1 parent 17cd341 commit 7e3a8ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
18 changes: 7 additions & 11 deletions src/OneWare.NetlistSvg/NetlistSvgModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,17 @@ public void RegisterTypes(IContainerRegistry containerRegistry)
public void OnInitialized(IContainerProvider containerProvider)
{
var netListSvgService = containerProvider.Resolve<NetlistSvgService>();
containerProvider.Resolve<IProjectExplorerService>().RegisterConstructContextMenu(x =>

containerProvider.Resolve<IProjectExplorerService>().RegisterConstructContextMenu((x, l) =>
{
if (x is [IProjectFile {Extension: ".json"} json])
if (x is [IProjectFile { Extension: ".json" } json])
{
return new[]
l.Add(new MenuItemViewModel("NetlistSvg")
{
new MenuItemViewModel("NetlistSvg")
{
Header = "Convert to SVG",
Command = new AsyncRelayCommand(() => netListSvgService.ShowSchemeAsync(json))
}
};
Header = "Convert to SVG",
Command = new AsyncRelayCommand(() => netListSvgService.ShowSchemeAsync(json))
});
}
return null;
});
}
}
2 changes: 1 addition & 1 deletion src/OneWare.NetlistSvg/OneWare.NetlistSvg.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="OneWare.Essentials" Version="0.3.1" Private="false" ExcludeAssets="runtime;Native"/>
<PackageReference Include="OneWare.Essentials" Version="0.4.5" Private="false" ExcludeAssets="runtime;Native" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/OneWare.NetlistSvg/oneware.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"Dependencies": [
{
"Name": "OneWare.Essentials",
"MinVersion": "0.3.1.0",
"MaxVersion": "0.3.1.0"
"MinVersion": "0.4.5.0",
"MaxVersion": "0.4.5.0"
}
]
}

0 comments on commit 7e3a8ce

Please sign in to comment.