mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
prevent progress bar to appear after a download is finished with CfApi
when using Cloud Filter API with enabled VFS on Windows, a progress bar stays visible for some time after hydration is completed. Not updating a last time the progress bar prevents that. Signed-off-by: Matthieu Gallien <matthieu_gallien@yahoo.fr>
This commit is contained in:
parent
9453bcab59
commit
929ae965ce
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,11 @@ void cfApiSendTransferInfo(const CF_CONNECTION_KEY &connectionKey, const CF_TRAN
|
||||||
qCCritical(lcCfApiWrapper) << "Couldn't send transfer info" << QString::number(transferKey.QuadPart, 16) << ":" << cfExecuteresult << QString::fromWCharArray(_com_error(cfExecuteresult).ErrorMessage());
|
qCCritical(lcCfApiWrapper) << "Couldn't send transfer info" << QString::number(transferKey.QuadPart, 16) << ":" << cfExecuteresult << QString::fromWCharArray(_com_error(cfExecuteresult).ErrorMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto isDownloadFinished = ((offset + currentBlockLength) == totalLength);
|
||||||
|
if (isDownloadFinished) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// refresh Windows Copy Dialog progress
|
// refresh Windows Copy Dialog progress
|
||||||
LARGE_INTEGER progressTotal;
|
LARGE_INTEGER progressTotal;
|
||||||
progressTotal.QuadPart = totalLength;
|
progressTotal.QuadPart = totalLength;
|
||||||
|
|
Loading…
Reference in a new issue