Fix duplicated error message dialog from GUI jobs.

This commit is contained in:
tamasmeszaros 2021-04-07 12:40:33 +02:00
parent 9aac1b6fa5
commit 3135e47180
3 changed files with 28 additions and 7 deletions

View file

@ -132,7 +132,8 @@ SLAImportJob::~SLAImportJob() = default;
void SLAImportJob::process()
{
auto progr = [this](int s) {
if (s < 100) update_status(int(s), _(L("Importing SLA archive")));
if (s < 100)
update_status(int(s), _(L("Importing SLA archive")));
return !was_canceled();
};