Trying to fix ProgressBar for Local

This commit is contained in:
Amesaru 2021-04-20 15:54:55 +03:00 committed by Amesaru
parent 49eae81447
commit c98c131ee5

View File

@ -394,6 +394,11 @@ void LocalServer::processQueries()
context->setProgressCallback([&]
(const Progress &value)
{
if (!progress_bar.updateProgress(progress, value))
{
// Just a keep-alive update.
return true;
}
progress_bar.updateProgress(progress, value);
progress_bar.writeProgress(progress, watch);
return true;