diff --git a/NAPS2.Core/WinForms/FAutoSaveSettings.cs b/NAPS2.Core/WinForms/FAutoSaveSettings.cs index c15194df1..50a6798ad 100644 --- a/NAPS2.Core/WinForms/FAutoSaveSettings.cs +++ b/NAPS2.Core/WinForms/FAutoSaveSettings.cs @@ -24,12 +24,7 @@ using System.Diagnostics; using System.Linq; using System.Windows.Forms; using NAPS2.ImportExport; -using NAPS2.Lang.Resources; using NAPS2.Scan; -using NAPS2.Scan.Exceptions; -using NAPS2.Scan.Twain; -using NAPS2.Scan.Wia; -using NAPS2.Util; namespace NAPS2.WinForms { @@ -55,8 +50,7 @@ namespace NAPS2.WinForms { rdFilePerScan.Checked = true; } - else if (ScanProfile.AutoSaveSettings.Separator == SaveSeparator.PatchT && - ScanProfile.DriverName == TwainScanDriver.DRIVER_NAME) + else if (ScanProfile.AutoSaveSettings.Separator == SaveSeparator.PatchT) { rdSeparateByPatchT.Checked = true; } @@ -66,11 +60,6 @@ namespace NAPS2.WinForms } } - if (ScanProfile.DriverName != TwainScanDriver.DRIVER_NAME) - { - rdSeparateByPatchT.Enabled = false; - } - new LayoutManager(this) .Bind(txtFilePath) .WidthToForm() diff --git a/NAPS2.Core/WinForms/FAutoSaveSettings.resx b/NAPS2.Core/WinForms/FAutoSaveSettings.resx index 4bfec78a2..63bd5edb7 100644 --- a/NAPS2.Core/WinForms/FAutoSaveSettings.resx +++ b/NAPS2.Core/WinForms/FAutoSaveSettings.resx @@ -217,13 +217,13 @@ 11, 116 - 211, 17 + 144, 17 22 - Separate files by Patch-T (TWAIN only) + Separate files by Patch-T rdSeparateByPatchT @@ -481,12 +481,12 @@ ilProfileIcons - NAPS2.WinForms.ILProfileIcons, NAPS2.Core, Version=4.6.1.31733, Culture=neutral, PublicKeyToken=null + NAPS2.WinForms.ILProfileIcons, NAPS2.Core, Version=5.2.1.29171, Culture=neutral, PublicKeyToken=null FAutoSaveSettings - NAPS2.WinForms.FormBase, NAPS2.Core, Version=4.6.1.31733, Culture=neutral, PublicKeyToken=null + NAPS2.WinForms.FormBase, NAPS2.Core, Version=5.2.1.29171, Culture=neutral, PublicKeyToken=null \ No newline at end of file diff --git a/NAPS2.Core/WinForms/FBatchScan.Designer.cs b/NAPS2.Core/WinForms/FBatchScan.Designer.cs index 2740433e3..951e8cd1c 100644 --- a/NAPS2.Core/WinForms/FBatchScan.Designer.cs +++ b/NAPS2.Core/WinForms/FBatchScan.Designer.cs @@ -196,7 +196,6 @@ namespace NAPS2.WinForms this.comboProfile.FormattingEnabled = true; resources.ApplyResources(this.comboProfile, "comboProfile"); this.comboProfile.Name = "comboProfile"; - this.comboProfile.SelectedIndexChanged += new System.EventHandler(this.comboProfile_SelectedIndexChanged); this.comboProfile.Format += new System.Windows.Forms.ListControlConvertEventHandler(this.comboProfile_Format); // // lblProfile diff --git a/NAPS2.Core/WinForms/FBatchScan.cs b/NAPS2.Core/WinForms/FBatchScan.cs index 506fb847c..08352b2a3 100644 --- a/NAPS2.Core/WinForms/FBatchScan.cs +++ b/NAPS2.Core/WinForms/FBatchScan.cs @@ -189,22 +189,6 @@ namespace NAPS2.WinForms { comboProfile.Text = ""; } - ProfileChanged(); - } - - private bool ProfileIsTwain() - { - var profile = (ScanProfile)comboProfile.SelectedItem; - if (profile != null) - { - return profile.DriverName == TwainScanDriver.DRIVER_NAME; - } - return false; - } - - private void ProfileChanged() - { - rdSeparateByPatchT.Enabled = ProfileIsTwain(); } private void rdSingleScan_CheckedChanged(object sender, EventArgs e) @@ -323,7 +307,6 @@ namespace NAPS2.WinForms { EnableDisable(groupboxScanConfig, enabled); EnableDisable(groupboxOutput, enabled); - rdSeparateByPatchT.Enabled = enabled && ProfileIsTwain(); } private void EnableDisable(Control root, bool enabled) @@ -430,10 +413,5 @@ namespace NAPS2.WinForms txtFilePath.Text = form.FileName; } } - - private void comboProfile_SelectedIndexChanged(object sender, EventArgs e) - { - ProfileChanged(); - } } } diff --git a/NAPS2.Core/WinForms/FBatchScan.resx b/NAPS2.Core/WinForms/FBatchScan.resx index aba661f1e..e8d8f47ef 100644 --- a/NAPS2.Core/WinForms/FBatchScan.resx +++ b/NAPS2.Core/WinForms/FBatchScan.resx @@ -580,13 +580,13 @@ 39, 46 - 211, 17 + 144, 17 2 - Separate files by Patch-T (TWAIN only) + Separate files by Patch-T rdSeparateByPatchT @@ -997,7 +997,7 @@ ilProfileIcons - NAPS2.WinForms.ILProfileIcons, NAPS2.Core, Version=4.6.1.31733, Culture=neutral, PublicKeyToken=null + NAPS2.WinForms.ILProfileIcons, NAPS2.Core, Version=5.2.1.29171, Culture=neutral, PublicKeyToken=null folderBrowserDialog1 @@ -1009,6 +1009,6 @@ FBatchScan - NAPS2.WinForms.FormBase, NAPS2.Core, Version=4.6.1.31733, Culture=neutral, PublicKeyToken=null + NAPS2.WinForms.FormBase, NAPS2.Core, Version=5.2.1.29171, Culture=neutral, PublicKeyToken=null \ No newline at end of file