PKG: Implement Multi-threaded installation

This commit is contained in:
Eladash 2022-12-24 11:34:29 +02:00 committed by Ivan
parent 1d5fef4930
commit 02f35383bd
3 changed files with 219 additions and 167 deletions

View file

@ -921,6 +921,7 @@ void main_window::HandlePackageInstallation(QStringList file_paths)
// Update progress window
double pval = progress;
if (pval < 0.) pval += 1.;
pdlg.SetValue(static_cast<int>(pval * pdlg.maximum()));
QCoreApplication::processEvents();
}