Skip to content

Commit

Permalink
Set IsExecuting back to false either after the extraction has reporte…
Browse files Browse the repository at this point in the history
…d as complete or no extraction took place because there were no directories to extract from.
  • Loading branch information
laurencee committed Jun 3, 2015
1 parent c37669c commit c9139dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SubFolderExtractor/Model/ExtractionModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void StartExtraction(string startDirectory)
NotifyOfPropertyChange(() => Progress);
}

IsExecuting = false;
if (totalDirectoriesCount == 0) IsExecuting = false;
}

public void Cancel()
Expand Down Expand Up @@ -204,6 +204,8 @@ private void ExtractionFinished(object sender, EventArgs e)

if (!complete)
autoResetEvent.Set(); // allow the next extraction to start (if there is one)
else
IsExecuting = false;
}

private void ExtractionProgress(object sender, ProgressEventArgs e)
Expand Down

0 comments on commit c9139dd

Please sign in to comment.