mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Minor refact (Logic/Settings)
This commit is contained in:
parent
09270c84a4
commit
f68f17da45
@ -2861,13 +2861,13 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
{
|
||||
const int maximumFindHistoryItems = 10;
|
||||
textWriter.WriteStartElement("FindHistory", "");
|
||||
for (int index = 0; index < settings.Tools.FindHistory.Count; index++)
|
||||
int maxIndex = settings.Tools.FindHistory.Count;
|
||||
if (maxIndex > maximumFindHistoryItems)
|
||||
maxIndex = maximumFindHistoryItems;
|
||||
for (int index = 0; index < maxIndex; index++)
|
||||
{
|
||||
if (index < maximumFindHistoryItems)
|
||||
{
|
||||
var text = settings.Tools.FindHistory[index];
|
||||
textWriter.WriteElementString("Text", text);
|
||||
}
|
||||
var text = settings.Tools.FindHistory[index];
|
||||
textWriter.WriteElementString("Text", text);
|
||||
}
|
||||
textWriter.WriteEndElement();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user