mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Minor fixes for #8210 - thx Leon :)
This commit is contained in:
parent
bf84e6ca6b
commit
fcd567c5ac
@ -42,8 +42,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
public bool BatchMode { get; set; }
|
||||
public string BatchInfo { get; set; }
|
||||
private readonly List<BatchVideoAndSub> _batchVideoAndSubList;
|
||||
private const int ListViewBatchSubItemIndexColumnSubtitleFile = 2;
|
||||
private const int ListViewBatchSubItemIndexColumnStatus = 3;
|
||||
private const int ListViewBatchSubItemIndexColumnSubtitleFile = 3;
|
||||
private const int ListViewBatchSubItemIndexColumnStatus = 4;
|
||||
|
||||
public class BatchVideoAndSub
|
||||
{
|
||||
@ -437,6 +437,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
Stopwatch stopWatch;
|
||||
if (BatchMode)
|
||||
{
|
||||
listViewBatch.SelectedIndices.Clear();
|
||||
|
||||
stopWatch = Stopwatch.StartNew();
|
||||
var sbInfo = new StringBuilder();
|
||||
sbInfo.AppendLine($"Input for convert: {_batchVideoAndSubList.Count} video files:");
|
||||
@ -469,9 +471,9 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
}
|
||||
|
||||
if (File.Exists(VideoFileName))
|
||||
{
|
||||
}
|
||||
listViewBatch.Items[index].Selected = true;
|
||||
listViewBatch.Items[index].Focused = true;
|
||||
listViewBatch.Items[index].EnsureVisible();
|
||||
|
||||
if (ConvertVideo(oldFontSizeEnabled, videoAndSub.VideoFileName, subtitle))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user