From f3902f0fab87ada1bcd5470aecdb2c919b442d2b Mon Sep 17 00:00:00 2001 From: Alexander Heidn <40741234+HerrKnarz@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:39:57 +0200 Subject: [PATCH] Fixed crash when clicking on a developer, publisher, region or platform in the custom controls. --- .../MetadataUtilities.csproj | 96 +++++++++++++++++++ .../Properties/AssemblyInfo.cs | 4 +- .../ViewModels/PrefixItemControlViewModel.cs | 41 +++----- Generic/MetadataUtilities/extension.yaml | 2 +- Manifest/HerrKnarz_MetadataUtilities.yaml | 6 ++ 5 files changed, 117 insertions(+), 32 deletions(-) diff --git a/Generic/MetadataUtilities/MetadataUtilities.csproj b/Generic/MetadataUtilities/MetadataUtilities.csproj index d6c51ab44..b7131da78 100644 --- a/Generic/MetadataUtilities/MetadataUtilities.csproj +++ b/Generic/MetadataUtilities/MetadataUtilities.csproj @@ -325,6 +325,102 @@ Designer MSBuild:Compile + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + Designer MSBuild:Compile diff --git a/Generic/MetadataUtilities/Properties/AssemblyInfo.cs b/Generic/MetadataUtilities/Properties/AssemblyInfo.cs index cf21486ad..6ff387bfb 100644 --- a/Generic/MetadataUtilities/Properties/AssemblyInfo.cs +++ b/Generic/MetadataUtilities/Properties/AssemblyInfo.cs @@ -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")] \ No newline at end of file +[assembly: AssemblyVersion("1.4.1.0")] +[assembly: AssemblyFileVersion("1.4.1.0")] \ No newline at end of file diff --git a/Generic/MetadataUtilities/ViewModels/PrefixItemControlViewModel.cs b/Generic/MetadataUtilities/ViewModels/PrefixItemControlViewModel.cs index a13000b64..4cad33e20 100644 --- a/Generic/MetadataUtilities/ViewModels/PrefixItemControlViewModel.cs +++ b/Generic/MetadataUtilities/ViewModels/PrefixItemControlViewModel.cs @@ -145,47 +145,30 @@ public ObservableCollection 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(); } diff --git a/Generic/MetadataUtilities/extension.yaml b/Generic/MetadataUtilities/extension.yaml index dfab6e9b9..53d10aa24 100644 --- a/Generic/MetadataUtilities/extension.yaml +++ b/Generic/MetadataUtilities/extension.yaml @@ -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 diff --git a/Manifest/HerrKnarz_MetadataUtilities.yaml b/Manifest/HerrKnarz_MetadataUtilities.yaml index 5f69b111f..2c27b535f 100644 --- a/Manifest/HerrKnarz_MetadataUtilities.yaml +++ b/Manifest/HerrKnarz_MetadataUtilities.yaml @@ -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