Don't disable driver-specific checkboxes

Now that devices are picked in combination with drivers, it makes sense to decouple the driver from available settings.
This commit is contained in:
Ben Olden-Cooligan 2024-08-02 16:46:14 -07:00
parent 5994f6ca54
commit c275304c66

View File

@ -130,12 +130,8 @@ public class AdvancedProfileForm : EtoDialogBase
private void UpdateEnabled()
{
_twainImpl.Enabled = ScanProfile!.DriverName == DriverNames.TWAIN;
_twainProgress.Enabled = ScanProfile!.DriverName == DriverNames.TWAIN;
_offsetWidth.Enabled = ScanProfile.DriverName == DriverNames.WIA;
_wiaVersion.Enabled = ScanProfile.DriverName == DriverNames.WIA;
_quality.Enabled = !_maximumQuality.IsChecked();
_whiteThreshold.Enabled = _excludeBlank.IsChecked() && ScanProfile.BitDepth != ScanBitDepth.BlackWhite;
_whiteThreshold.Enabled = _excludeBlank.IsChecked() && ScanProfile!.BitDepth != ScanBitDepth.BlackWhite;
_coverageThreshold.Enabled = _excludeBlank.IsChecked();
}