mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Remove too complicated setting
This commit is contained in:
parent
2d29bedb42
commit
543e72abf7
@ -1400,7 +1400,6 @@ $HorzAlign = Center
|
||||
public bool CaptureTopAlign { get; set; }
|
||||
public int UnfocusedAttentionBlinkCount { get; set; }
|
||||
public int UnfocusedAttentionPlaySoundCount { get; set; }
|
||||
public int UnfocusedAttentionPlaySoundEvery { get; set; }
|
||||
|
||||
public VobSubOcrSettings()
|
||||
{
|
||||
@ -1426,8 +1425,7 @@ $HorzAlign = Center
|
||||
BinaryAutoDetectBestDb = true;
|
||||
CaptureTopAlign = false;
|
||||
UnfocusedAttentionBlinkCount = 50;
|
||||
UnfocusedAttentionPlaySoundCount = 2;
|
||||
UnfocusedAttentionPlaySoundEvery = 2;
|
||||
UnfocusedAttentionPlaySoundCount = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -5313,12 +5311,6 @@ $HorzAlign = Center
|
||||
settings.VobSubOcr.UnfocusedAttentionPlaySoundCount = Convert.ToInt32(subNode.InnerText, CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
subNode = node.SelectSingleNode("UnfocusedAttentionPlaySoundEvery");
|
||||
if (subNode != null)
|
||||
{
|
||||
settings.VobSubOcr.UnfocusedAttentionPlaySoundEvery = Convert.ToInt32(subNode.InnerText, CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
foreach (XmlNode groupNode in doc.DocumentElement.SelectNodes("MultipleSearchAndReplaceGroups/Group"))
|
||||
{
|
||||
var group = new MultipleSearchAndReplaceGroup();
|
||||
@ -7496,7 +7488,6 @@ $HorzAlign = Center
|
||||
textWriter.WriteElementString("CaptureTopAlign", settings.VobSubOcr.CaptureTopAlign.ToString(CultureInfo.InvariantCulture));
|
||||
textWriter.WriteElementString("UnfocusedAttentionBlinkCount", settings.VobSubOcr.UnfocusedAttentionBlinkCount.ToString(CultureInfo.InvariantCulture));
|
||||
textWriter.WriteElementString("UnfocusedAttentionPlaySoundCount", settings.VobSubOcr.UnfocusedAttentionPlaySoundCount.ToString(CultureInfo.InvariantCulture));
|
||||
textWriter.WriteElementString("UnfocusedAttentionPlaySoundEvery", settings.VobSubOcr.UnfocusedAttentionPlaySoundEvery.ToString(CultureInfo.InvariantCulture));
|
||||
|
||||
textWriter.WriteEndElement();
|
||||
|
||||
|
@ -369,7 +369,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
_blinkForm,
|
||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionBlinkCount,
|
||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundCount,
|
||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundEvery);
|
||||
2);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -262,7 +262,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
_vobSubForm,
|
||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionBlinkCount,
|
||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundCount,
|
||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundEvery);
|
||||
2);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user