Skip to content

Commit 2350417

Browse files
committed
Clear stream list after batch queue
1 parent 48838b4 commit 2350417

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

ff-utils-winforms/Forms/MainForm.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,7 @@ public void SetWorking(bool state, bool allowCancel = true)
157157
controlsToDisable.AddRange(new Control[] { trackListDefaultAudio, trackListDefaultSubs });
158158
controlsToHide.AddRange(new Control[] { trackListCheckTracksBtn, trackListSortTracksBtn, trackListMoveUpBtn, trackListMoveDownBtn, fileListMoveUpBtn, fileListMoveDownBtn });
159159

160-
//Program.mainForm.streamList.CheckBoxes = !state;
161160
streamListBlockPanel.Visible = state;
162-
163-
if (!state)
164-
streamList.Items.Clear();
165161
}
166162

167163
progressCircle.Visible = state;

ff-utils-winforms/Main/RunTask.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public static async Task StartBatch()
141141
finishedTasks++;
142142
}
143143

144+
TrackList.ClearCurrentFile(true);
144145
runningBatch = false;
145146

146147
Logger.Log($"Queue: Completed {finishedTasks}/{taskFileListItems.Length} tasks{(canceled ? " (Canceled)" : "")}. Total time: {sw}");

ff-utils-winforms/UI/TrackList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public static async Task AddStreamsToList(MediaFile mediaFile, Color color, bool
164164

165165
await mediaFile.Initialize();
166166

167-
if (!silent)
167+
if (!silent)
168168
PrintFoundStreams(mediaFile);
169169
}
170170

0 commit comments

Comments
 (0)