From 5d4a41d82d1a942de560cfcb39f438601e23bd01 Mon Sep 17 00:00:00 2001 From: sunwen Date: Thu, 17 Jul 2025 13:57:42 +0800 Subject: [PATCH] feat: Update empty scan complete dialog logic. --- src/device/DeviceManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/DeviceManager.cpp b/src/device/DeviceManager.cpp index 3918639..c532685 100644 --- a/src/device/DeviceManager.cpp +++ b/src/device/DeviceManager.cpp @@ -467,8 +467,8 @@ void DeviceManager::prepareFinishScan(bool isNormalFinish, const QString& aReaso if(isCompleteNotify) { - QString msg = ScanProcessSequence::getInstance()->getScanPositionSize() == 2 ? tr("Scan completed! Please prepare for the next scan. \nAfter lying down, click the confirm button" - "to start scanning on the next side.") : tr("Scan completed!") ; + QString msg = (!mIsEmptyScan && ScanProcessSequence::getInstance()->getScanPositionSize() == 2) ? tr("Scan completed! Please prepare for the next scan. \nAfter lying down, click the confirm button" + "to start scanning on the next side.") : tr("Scan completed!") ; TRIGGER_EVENT(InvokeOperationEnd, nullptr, (QObject *)&msg); } else