From dbeeb0c69bdcd8a328eacd6a82fdbb12292c3a29 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 10 Apr 2022 22:23:15 -0700 Subject: [PATCH] Make protection field user-editable (fixes #340) --- CHANGELIST.md | 1 + MPF/ViewModels/DiscInformationViewModel.cs | 2 -- MPF/Windows/DiscInformationWindow.xaml | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index 05e8fa03..57919358 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -46,6 +46,7 @@ - Combine cases in protection scan - Convert status label to TextBlock - Add option for copy protection file output +- Make protection field user-editable ### 2.3 (2022-02-05) - Start overhauling Redump information pulling, again diff --git a/MPF/ViewModels/DiscInformationViewModel.cs b/MPF/ViewModels/DiscInformationViewModel.cs index 91c32edd..e11b12f5 100644 --- a/MPF/ViewModels/DiscInformationViewModel.cs +++ b/MPF/ViewModels/DiscInformationViewModel.cs @@ -306,8 +306,6 @@ namespace MPF.GUI.ViewModels Parent.PFIHash.Visibility = Visibility.Collapsed; if (string.IsNullOrWhiteSpace(SubmissionInfo?.Extras?.PIC)) Parent.PIC.Visibility = Visibility.Collapsed; - if (string.IsNullOrWhiteSpace(SubmissionInfo?.CopyProtection?.Protection)) - Parent.Protection.Visibility = Visibility.Collapsed; if (string.IsNullOrWhiteSpace(SubmissionInfo?.Extras?.PVD)) Parent.PVD.Visibility = Visibility.Collapsed; if (string.IsNullOrWhiteSpace(SubmissionInfo?.CopyProtection?.SecuROMData)) diff --git a/MPF/Windows/DiscInformationWindow.xaml b/MPF/Windows/DiscInformationWindow.xaml index 81fe11d1..b4126d2c 100644 --- a/MPF/Windows/DiscInformationWindow.xaml +++ b/MPF/Windows/DiscInformationWindow.xaml @@ -165,6 +165,9 @@ Text="{Binding SubmissionInfo.CommonDiscInfo.Comments, Mode=TwoWay}" TextHeight="50" Enter="True" TextWrapping="Wrap" VerticalContentAlignmentValue="Top" /> + @@ -357,9 +360,6 @@ -