Follow-up fb3ed367ad : Fixed flickering of the wxProgressDialog during the model fixing

This commit is contained in:
YuSanka 2021-10-07 14:03:50 +02:00
parent b99be85187
commit c0f3077ce9

View file

@ -421,7 +421,7 @@ bool fix_model_by_win10_sdk_gui(ModelObject &model_object, int volume_idx, wxPro
}
});
while (! finished) {
condition.wait_for(lock, std::chrono::milliseconds(500), [&progress]{ return progress.updated; });
condition.wait_for(lock, std::chrono::milliseconds(250), [&progress]{ return progress.updated; });
// decrease progress.percent value to avoid closing of the progress dialog
if (!progress_dialog.Update(progress.percent-1, msg_header + _(progress.message)))
canceled = true;