Skip to content

Commit e7d0ff5

Browse files
authored
clear ui when start run coverage (#138)
clear ui when start run coverage
1 parent ed3f144 commit e7d0ff5

File tree

2 files changed

+177
-173
lines changed

2 files changed

+177
-173
lines changed

FineCodeCoverage/Core/FCCEngine.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public void StopCoverage()
118118

119119
private CancellationToken Reset()
120120
{
121+
ClearUI();
121122
StopCoverage();
122123

123124
cancellationTokenSource = new CancellationTokenSource();
@@ -240,7 +241,7 @@ private void ReloadCoverageTaskContinuation(System.Threading.Tasks.Task<(List<Co
240241
case System.Threading.Tasks.TaskStatus.Faulted:
241242
LogReloadCoverageStatus(ReloadCoverageStatus.Error);
242243
logger.Log(t.Exception.InnerExceptions[0]);
243-
UpdateUI(null, null);
244+
ClearUI();
244245
break;
245246
case System.Threading.Tasks.TaskStatus.RanToCompletion:
246247
LogReloadCoverageStatus(ReloadCoverageStatus.Done);

0 commit comments

Comments
 (0)