Skip to content

Commit

Permalink
Fixed crash when clicking on a developer, publisher, region or platfo…
Browse files Browse the repository at this point in the history
…rm in the custom controls.
  • Loading branch information
HerrKnarz committed Oct 23, 2024
1 parent 5b5541c commit f3902f0
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 32 deletions.
96 changes: 96 additions & 0 deletions Generic/MetadataUtilities/MetadataUtilities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,102 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Localization\af_ZA.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\ar_EG.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\bn_BD.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\en_PT.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\eo_UY.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\fa_IR.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\gu_IN.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\ha_HG.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\hi_IN.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\id_ID.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\jbo_EN.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\jv_ID.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\mr_IN.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\pa_IN.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\pcm_NG.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\qya_AA.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\sw_KE.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\ta_IN.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\te_IN.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\th_TH.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\tlh_AA.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\tl_PH.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\ur_IN.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localization\zh_TW.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Views\ConditionalActionEditorView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down
4 changes: 2 additions & 2 deletions Generic/MetadataUtilities/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,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("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
[assembly: AssemblyVersion("1.4.1.0")]
[assembly: AssemblyFileVersion("1.4.1.0")]
41 changes: 12 additions & 29 deletions Generic/MetadataUtilities/ViewModels/PrefixItemControlViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,47 +145,30 @@ public ObservableCollection<PrefixItemList> ItemLists
case FieldType.Category:
preset.Settings.Category = filterField;
break;
case FieldType.Developer:
preset.Settings.Developer = filterField;
break;
case FieldType.Feature:
preset.Settings.Feature = filterField;
break;
case FieldType.Genre:
preset.Settings.Genre = filterField;
break;
case FieldType.Platform:
preset.Settings.Platform = filterField;
break;
case FieldType.Publisher:
preset.Settings.Publisher = filterField;
break;
case FieldType.Region:
preset.Settings.Region = filterField;
break;
case FieldType.Series:
preset.Settings.Series = filterField;
break;
case FieldType.Tag:
preset.Settings.Tag = filterField;
break;
case FieldType.Empty:
case FieldType.Background:
case FieldType.CompletionStatus:
case FieldType.CommunityScore:
case FieldType.Cover:
case FieldType.CriticScore:
case FieldType.DateAdded:
case FieldType.Description:
case FieldType.Developer:
case FieldType.Favorite:
case FieldType.Hdr:
case FieldType.Hidden:
case FieldType.Icon:
case FieldType.InstallSize:
case FieldType.IsInstalled:
case FieldType.LastPlayed:
case FieldType.Library:
case FieldType.Name:
case FieldType.Notes:
case FieldType.Platform:
case FieldType.PlayCount:
case FieldType.Publisher:
case FieldType.OverrideInstallState:
case FieldType.Region:
case FieldType.ReleaseDate:
case FieldType.SortingName:
case FieldType.Source:
case FieldType.TimePlayed:
case FieldType.UserScore:
default:
throw new ArgumentOutOfRangeException();
}
Expand Down
2 changes: 1 addition & 1 deletion Generic/MetadataUtilities/extension.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Id: MetadataUtilities_485ab5f0-bfb1-4c17-93cc-20d8338673be
Name: Metadata Utilities
Author: HerrKnarz
Version: 1.4.0
Version: 1.4.1
Module: MetadataUtilities.dll
Type: GenericPlugin
Icon: icon.png
Expand Down
6 changes: 6 additions & 0 deletions Manifest/HerrKnarz_MetadataUtilities.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
AddonId: MetadataUtilities_485ab5f0-bfb1-4c17-93cc-20d8338673be
Packages:
- Version: 1.4.1
RequiredApiVersion: 6.11.0
ReleaseDate: 2024-10-23
PackageUrl: https://github.com/HerrKnarz/Playnite-Extensions/releases/download/2024-10-23/MetadataUtilities_485ab5f0-bfb1-4c17-93cc-20d8338673be_1_4_1.pext
Changelog:
- Fixed crash when clicking on a developer, publisher, region or platform in the custom controls.
- Version: 1.4.0
RequiredApiVersion: 6.11.0
ReleaseDate: 2024-10-22
Expand Down

0 comments on commit f3902f0

Please sign in to comment.