Fix package installation exit condition after error occured

This commit is contained in:
Megamouse 2023-01-31 19:39:31 +01:00
parent 2372116acc
commit bcb1c6c080

View File

@ -962,7 +962,7 @@ void main_window::HandlePackageInstallation(QStringList file_paths)
pdlg.show();
// Wait for the completion
for (usz i = 0, set_text = umax; i < readers.size();)
for (usz i = 0, set_text = umax; i < readers.size() && error == package_error::no_error;)
{
std::this_thread::sleep_for(5ms);