diff --git a/DICUI/Windows/DiscInformationWindow.xaml.cs b/DICUI/Windows/DiscInformationWindow.xaml.cs index f6821343..19287bb9 100644 --- a/DICUI/Windows/DiscInformationWindow.xaml.cs +++ b/DICUI/Windows/DiscInformationWindow.xaml.cs @@ -27,6 +27,7 @@ namespace DICUI.Windows PopulateCategories(); PopulateRegions(); PopulateLanguages(); + DisableFieldsIfNeeded(); } public void Refresh() @@ -118,6 +119,22 @@ namespace DICUI.Windows LanguagesComboBox.SelectedIndex = 0; } + /// + /// Disable fields that aren't applicable to the current disc + /// + private void DisableFieldsIfNeeded() + { + // Only disable for single-layer discs + if (_submissionInfo.SizeAndChecksums.Layerbreak == default(long)) + { + L1MasteringRingTextBox.IsReadOnly = true; + L1MasteringSIDTextBox.IsReadOnly = true; + L1ToolstampTextBox.IsReadOnly = true; + L1MouldSIDTextBox.IsReadOnly = true; + L1AdditionalMouldTextBox.IsReadOnly = true; + } + } + #region Event Handlers private void OnClosed(object sender, EventArgs e)