mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
work on #8210
This commit is contained in:
parent
57efc1bd18
commit
7e0fa1f56a
@ -446,6 +446,11 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
var videoAndSub = _batchVideoAndSubList[index];
|
var videoAndSub = _batchVideoAndSubList[index];
|
||||||
_videoInfo = UiUtil.GetVideoInfo(videoAndSub.VideoFileName);
|
_videoInfo = UiUtil.GetVideoInfo(videoAndSub.VideoFileName);
|
||||||
var subtitle = new Subtitle();
|
var subtitle = new Subtitle();
|
||||||
|
if (!string.IsNullOrEmpty(videoAndSub.SubtitleFileName) & File.Exists(videoAndSub.SubtitleFileName))
|
||||||
|
{
|
||||||
|
subtitle = Subtitle.Parse(videoAndSub.SubtitleFileName);
|
||||||
|
}
|
||||||
|
|
||||||
var path = Path.GetDirectoryName(videoAndSub.VideoFileName);
|
var path = Path.GetDirectoryName(videoAndSub.VideoFileName);
|
||||||
var nameNoExt = Path.GetFileNameWithoutExtension(videoAndSub.VideoFileName);
|
var nameNoExt = Path.GetFileNameWithoutExtension(videoAndSub.VideoFileName);
|
||||||
var ext = Path.GetExtension(videoAndSub.VideoFileName);
|
var ext = Path.GetExtension(videoAndSub.VideoFileName);
|
||||||
@ -1951,8 +1956,8 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
buttonRemoveFile.Visible = BatchMode;
|
buttonRemoveFile.Visible = BatchMode;
|
||||||
buttonClear.Visible = BatchMode;
|
buttonClear.Visible = BatchMode;
|
||||||
buttonMode.Text = BatchMode
|
buttonMode.Text = BatchMode
|
||||||
? LanguageSettings.Current.AudioToText.BatchMode
|
? LanguageSettings.Current.Split.Basic
|
||||||
: LanguageSettings.Current.Split.Basic;
|
: LanguageSettings.Current.AudioToText.BatchMode;
|
||||||
|
|
||||||
FontEnableOrDisable(BatchMode || _initialFontOn);
|
FontEnableOrDisable(BatchMode || _initialFontOn);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user