From a8a9c43f8daef1aa1ca667a45367f20a2b2b6e62 Mon Sep 17 00:00:00 2001 From: taynpg Date: Thu, 19 Jun 2025 22:31:34 +0800 Subject: [PATCH] small change. --- ClientCore/FileTrans.cpp | 4 +++- Gui/Form/Transform.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ClientCore/FileTrans.cpp b/ClientCore/FileTrans.cpp index 4afe70f..85456c9 100644 --- a/ClientCore/FileTrans.cpp +++ b/ClientCore/FileTrans.cpp @@ -149,6 +149,7 @@ void FileTrans::fbtReqSend(QSharedPointer frame) downTask_->permission = info.permissions; info.msg = QString(tr("open recv file success: %1")).arg(newerPath); + qInfo() << info.msg; auto f = clientCore_->GetBuffer(info, FBT_CLI_CAN_SEND, frame->fid); if (!ClientCore::asyncInvoke(clientCore_, [this, f]() { return clientCore_->Send(f); })) { qCritical() << QString(tr("open recv file:%2 success, but reply %2 failed.")).arg(info.msg, frame->fid); @@ -185,7 +186,8 @@ void FileTrans::fbtTransDone(QSharedPointer frame) if (downTask_->file.isOpen()) { downTask_->file.close(); downTask_->state = TaskState::STATE_FINISH; - qInfo() << QString(tr("recv file:%1 success.")).arg(downTask_->file.fileName()); + info.msg = QString(tr("recv file:%1 success.")).arg(downTask_->file.fileName()); + qInfo() << info.msg; auto f = clientCore_->GetBuffer(info, FBT_CLI_CAN_DOWN, frame->fid); ClientCore::asyncInvoke(clientCore_, [this, f]() { return clientCore_->Send(f); }); return; diff --git a/Gui/Form/Transform.cpp b/Gui/Form/Transform.cpp index 37ed207..038feb6 100644 --- a/Gui/Form/Transform.cpp +++ b/Gui/Form/Transform.cpp @@ -91,7 +91,7 @@ void TransForm::handleFailed() void TransForm::handleDone() { - ui->progressBar->setValue(0); + ui->progressBar->setValue(100); } void TransForm::handleUI(const TransTask& task)