From 38eb51e0c03f27ea8ff096e37bd3f2ab7fa55c11 Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Mon, 4 Sep 2023 19:57:44 -0700 Subject: [PATCH] Escl: Fix progress for platen --- NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs b/NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs index 38efe72849..33ca8dc4d8 100644 --- a/NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs +++ b/NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs @@ -89,6 +89,10 @@ public async Task Scan(ScanOptions options, CancellationToken cancelToken, IScan { callback(image); } + if (scanSettings.InputSource == EsclInputSource.Platen) + { + break; + } } } finally