mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
Follow-up fb3ed367ad
: Fixed flickering of the wxProgressDialog during the model fixing
This commit is contained in:
parent
b99be85187
commit
c0f3077ce9
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ bool fix_model_by_win10_sdk_gui(ModelObject &model_object, int volume_idx, wxPro
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
while (! finished) {
|
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
|
// decrease progress.percent value to avoid closing of the progress dialog
|
||||||
if (!progress_dialog.Update(progress.percent-1, msg_header + _(progress.message)))
|
if (!progress_dialog.Update(progress.percent-1, msg_header + _(progress.message)))
|
||||||
canceled = true;
|
canceled = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue