mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +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 bool CaptureTopAlign { get; set; }
|
||||||
public int UnfocusedAttentionBlinkCount { get; set; }
|
public int UnfocusedAttentionBlinkCount { get; set; }
|
||||||
public int UnfocusedAttentionPlaySoundCount { get; set; }
|
public int UnfocusedAttentionPlaySoundCount { get; set; }
|
||||||
public int UnfocusedAttentionPlaySoundEvery { get; set; }
|
|
||||||
|
|
||||||
public VobSubOcrSettings()
|
public VobSubOcrSettings()
|
||||||
{
|
{
|
||||||
@ -1426,8 +1425,7 @@ $HorzAlign = Center
|
|||||||
BinaryAutoDetectBestDb = true;
|
BinaryAutoDetectBestDb = true;
|
||||||
CaptureTopAlign = false;
|
CaptureTopAlign = false;
|
||||||
UnfocusedAttentionBlinkCount = 50;
|
UnfocusedAttentionBlinkCount = 50;
|
||||||
UnfocusedAttentionPlaySoundCount = 2;
|
UnfocusedAttentionPlaySoundCount = 1;
|
||||||
UnfocusedAttentionPlaySoundEvery = 2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5313,12 +5311,6 @@ $HorzAlign = Center
|
|||||||
settings.VobSubOcr.UnfocusedAttentionPlaySoundCount = Convert.ToInt32(subNode.InnerText, CultureInfo.InvariantCulture);
|
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"))
|
foreach (XmlNode groupNode in doc.DocumentElement.SelectNodes("MultipleSearchAndReplaceGroups/Group"))
|
||||||
{
|
{
|
||||||
var group = new MultipleSearchAndReplaceGroup();
|
var group = new MultipleSearchAndReplaceGroup();
|
||||||
@ -7496,7 +7488,6 @@ $HorzAlign = Center
|
|||||||
textWriter.WriteElementString("CaptureTopAlign", settings.VobSubOcr.CaptureTopAlign.ToString(CultureInfo.InvariantCulture));
|
textWriter.WriteElementString("CaptureTopAlign", settings.VobSubOcr.CaptureTopAlign.ToString(CultureInfo.InvariantCulture));
|
||||||
textWriter.WriteElementString("UnfocusedAttentionBlinkCount", settings.VobSubOcr.UnfocusedAttentionBlinkCount.ToString(CultureInfo.InvariantCulture));
|
textWriter.WriteElementString("UnfocusedAttentionBlinkCount", settings.VobSubOcr.UnfocusedAttentionBlinkCount.ToString(CultureInfo.InvariantCulture));
|
||||||
textWriter.WriteElementString("UnfocusedAttentionPlaySoundCount", settings.VobSubOcr.UnfocusedAttentionPlaySoundCount.ToString(CultureInfo.InvariantCulture));
|
textWriter.WriteElementString("UnfocusedAttentionPlaySoundCount", settings.VobSubOcr.UnfocusedAttentionPlaySoundCount.ToString(CultureInfo.InvariantCulture));
|
||||||
textWriter.WriteElementString("UnfocusedAttentionPlaySoundEvery", settings.VobSubOcr.UnfocusedAttentionPlaySoundEvery.ToString(CultureInfo.InvariantCulture));
|
|
||||||
|
|
||||||
textWriter.WriteEndElement();
|
textWriter.WriteEndElement();
|
||||||
|
|
||||||
|
@ -369,7 +369,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
|||||||
_blinkForm,
|
_blinkForm,
|
||||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionBlinkCount,
|
Configuration.Settings.VobSubOcr.UnfocusedAttentionBlinkCount,
|
||||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundCount,
|
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundCount,
|
||||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundEvery);
|
2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
|||||||
_vobSubForm,
|
_vobSubForm,
|
||||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionBlinkCount,
|
Configuration.Settings.VobSubOcr.UnfocusedAttentionBlinkCount,
|
||||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundCount,
|
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundCount,
|
||||||
Configuration.Settings.VobSubOcr.UnfocusedAttentionPlaySoundEvery);
|
2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user