mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 23:12:34 +01:00
Merge pull request #1331 from ivandrofly/patch-300
Update (src/Forms/AddWaveformBatch.cs)
This commit is contained in:
commit
49bdd7e032
@ -76,13 +76,13 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
buttonInputBrowse.Enabled = true;
|
||||
}
|
||||
|
||||
private static readonly ICollection<string> ExcludedExtensions = new List<string> { ".srt", ".txt", ".exe", ".ass", ".sub", ".jpg", ".png", ".zip", ".rar" };
|
||||
private void AddInputFile(string fileName)
|
||||
{
|
||||
try
|
||||
{
|
||||
var ext = Path.GetExtension(fileName).ToLowerInvariant();
|
||||
var excludedExtensions = new List<string> { ".srt", ".txt", ".exe", ".ass", ".sub", ".jpg", ".png", ".zip", ".rar" };
|
||||
if (string.IsNullOrEmpty(ext) || excludedExtensions.Contains(ext))
|
||||
if (string.IsNullOrEmpty(ext) || ExcludedExtensions.Contains(ext))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
frameRate = 25.0;
|
||||
}
|
||||
|
||||
long ms = (long)Math.Round(1000 / frameRate);
|
||||
long ms = (long)Math.Round(TimeCode.BaseUnit / frameRate);
|
||||
labelOneFrameIsXMS.Text = string.Format(Configuration.Settings.Language.SetMinimumDisplayTimeBetweenParagraphs.OneFrameXisYMilliseconds, frameRate, ms);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user