Skip to content

Commit f6ecca8

Browse files
committed
Do not try other actions if file has been processed
1 parent 77f4eb3 commit f6ecca8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PatternFileMover/Form1.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ void backgroundWorker1_DoWork(object sender, DoWorkEventArgs eventArgs)
121121
AbstractAction abstractAction = (AbstractAction)action;
122122
abstractAction.SetCurrent(dataGridView1.Rows[i]);
123123
processed = abstractAction.ExecuteAction();
124+
125+
if (processed)
126+
{
127+
break;
128+
}
124129
}
125130

126131
if (processed) processedFileCount++;

0 commit comments

Comments
 (0)