Skip to content

Commit

Permalink
Fix issue with license keys not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Fma965 committed Sep 20, 2021
1 parent 8a872b7 commit b1b9bf3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -362,3 +362,4 @@ references/ModernWpf.dll
references/ModernWpf.Controls.dll
Syn3Updater/PullLanguages.ps1
/Syn3Updater/Properties/launchSettings.json
Syn3Updater/Models/APISecretModel.cs
21 changes: 0 additions & 21 deletions .idea/.idea.Syn3Updater/.idea/riderModule.iml

This file was deleted.

4 changes: 2 additions & 2 deletions Launcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.10.5.0")]
[assembly: AssemblyFileVersion("2.10.5.0")]
[assembly: AssemblyVersion("2.10.6.0")]
[assembly: AssemblyFileVersion("2.10.6.0")]
4 changes: 2 additions & 2 deletions Syn3Updater/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
// You can specify all the values or you can default the Build a nd Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.10.5.0")]
[assembly: AssemblyFileVersion("2.10.5.0")]
[assembly: AssemblyVersion("2.10.6.0")]
[assembly: AssemblyFileVersion("2.10.6.0")]
10 changes: 10 additions & 0 deletions Syn3Updater/Syn3Updater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<None Include="$(SolutionDir)Syn3Updater\Languages\**" CopyToOutputDirectory="PreserveNewest" />
<Resource Include="cyanlabs.ico" />
<Resource Include="UI\Tabs\syncversion.png" />
<None Remove="Models\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentWPF" Version="0.9.0" />
Expand Down Expand Up @@ -86,12 +87,21 @@
<Page Update="UI\Tabs\About.xaml">
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
</Page>
<Page Remove="Models\**" />
</ItemGroup>

<ItemGroup>
<Content Include="Languages\*.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<Compile Remove="Models\**" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Remove="Models\**" />
</ItemGroup>
<Import Project="..\SharedCode\SharedCode.projitems" Label="Shared" />
</Project>
2 changes: 1 addition & 1 deletion Syn3Updater/UI/Tabs/HomeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ private async Task UpdateSelectedRelease()
SMapVersion?.Add(LM.GetValue("String.KeepExistingMaps"));

string license = string.Empty;
if (AppMan.App.MainSettings.LicenseKey?.Length > 10) license = @"{""licensekeys"":{""_contains"":""" + AppMan.App.MainSettings.LicenseKey + @"""}},";
if (AppMan.App.MainSettings.LicenseKey?.Length > 10) license = @"{licensekeys:{_contains:""" + AppMan.App.MainSettings.LicenseKey + @"""}},";

if (!string.IsNullOrWhiteSpace(SelectedRelease))
{
Expand Down

0 comments on commit b1b9bf3

Please sign in to comment.