Skip to content

Commit

Permalink
refactor and increase version
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-kokabi committed Apr 12, 2024
1 parent efa70ff commit 53ce4c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 1 addition & 7 deletions WhichKey/ViewModels/ShortcutListingViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@ public ShortcutListingViewModel(string appName)
{
AppName = appName;

List<ShortcutViewModel> shortcutViewModels = new();


foreach (var shortcutViewModel in GetShortcutViewModels(AppName))
{
shortcutViewModels.Add(shortcutViewModel);
}
List<ShortcutViewModel> shortcutViewModels = [.. GetShortcutViewModels(AppName)];

ShortcutsCollectionView = CollectionViewSource.GetDefaultView(shortcutViewModels.Where(vm => vm.AppName == appName));

Expand Down
5 changes: 3 additions & 2 deletions WhichKey/WhichKey.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.17763.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
Expand All @@ -14,7 +14,8 @@
<PackageProjectUrl>https://github.com/sir-kokabi/WhichKey</PackageProjectUrl>
<RepositoryUrl>https://github.com/sir-kokabi/which-key</RepositoryUrl>
<NeutralLanguage>en-US</NeutralLanguage>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>1.0.0.1</AssemblyVersion>
<Version>$(VersionPrefix)</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 53ce4c7

Please sign in to comment.