@@ -290,20 +290,21 @@ public async Task MainThread()
290290 }
291291 } while ( result == OperationVeredict . AutoRetry ) ;
292292
293- OperationFinished ? . Invoke ( this , EventArgs . Empty ) ;
294293
295294 while ( OperationQueue . Remove ( this ) ) ;
296295 // END OPERATION
297296
298297 if ( result == OperationVeredict . Success )
299298 {
300299 Status = OperationStatus . Succeeded ;
300+ OperationFinished ? . Invoke ( this , EventArgs . Empty ) ;
301301 OperationSucceeded ? . Invoke ( this , EventArgs . Empty ) ;
302302 Line ( Metadata . SuccessMessage , LineType . Information ) ;
303303 }
304304 else if ( result == OperationVeredict . Failure )
305305 {
306306 Status = OperationStatus . Failed ;
307+ OperationFinished ? . Invoke ( this , EventArgs . Empty ) ;
307308 OperationFailed ? . Invoke ( this , EventArgs . Empty ) ;
308309 Line ( Metadata . FailureMessage , LineType . Error ) ;
309310 Line ( Metadata . FailureMessage + " - " + CoreTools . Translate ( "Click here for more details" ) ,
@@ -312,6 +313,7 @@ public async Task MainThread()
312313 else if ( result == OperationVeredict . Canceled )
313314 {
314315 Status = OperationStatus . Canceled ;
316+ OperationFinished ? . Invoke ( this , EventArgs . Empty ) ;
315317 Line ( CoreTools . Translate ( "Operation canceled by user" ) , LineType . Error ) ;
316318 }
317319 }
0 commit comments