Skip to content

Commit

Permalink
Update WpfApp dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxhy committed Jul 7, 2023
1 parent ca07d1d commit e92980e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Leosac.WpfApp" Version="1.5.0">
<PackageReference Include="Leosac.WpfApp" Version="1.6.0">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="MaterialDesignThemes" Version="4.9.0">
Expand Down
2 changes: 1 addition & 1 deletion KeyManager.Library.UI/KeyManager.Library.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Leosac.WpfApp" Version="1.5.0" />
<PackageReference Include="Leosac.WpfApp" Version="1.6.0" />
<PackageReference Include="MaterialDesignThemes" Version="4.9.0" />
<PackageReference Include="Net.Codecrete.QrCodeGenerator" Version="2.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down
11 changes: 10 additions & 1 deletion KeyManager/EditKeyStoreControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Leosac.KeyManager.Library.KeyStore;
using Leosac.KeyManager.Library.UI;
using Leosac.KeyManager.Library.UI.Domain;
using Leosac.WpfApp;
using MaterialDesignThemes.Wpf;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -80,7 +81,15 @@ private void btnPublish_Click(object sender, RoutedEventArgs e)
{
if (DataContext is EditKeyStoreControlViewModel model)
{
model.Publish();
var plan = MaintenancePlan.GetSingletonInstance();
if (!string.IsNullOrEmpty(plan.LicenseKey))
{
model.Publish();
}
else
{
MaintenancePlan.OpenRegistration();
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion KeyManager/KeyManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Leosac.WpfApp" Version="1.5.0" />
<PackageReference Include="Leosac.WpfApp" Version="1.6.0" />
<PackageReference Include="log4net" Version="2.0.15" />
<PackageReference Include="MaterialDesignThemes" Version="4.9.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down

0 comments on commit e92980e

Please sign in to comment.