mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Spell check now sorts user dic when adding a word
This commit is contained in:
parent
846b9af7c2
commit
229db8c6f9
@ -445,10 +445,11 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
_userPhraseList.Add(s);
|
||||
else
|
||||
_userWordList.Add(s);
|
||||
XmlNode node = _userWordDictionary.CreateElement("word");
|
||||
node.InnerText = s;
|
||||
_userWordDictionary.DocumentElement.AppendChild(node);
|
||||
_userWordDictionary.Save(_dictionaryFolder + _languageName + "_user.xml");
|
||||
Utilities.AddToUserDictionary(s, _languageName);
|
||||
//XmlNode node = _userWordDictionary.CreateElement("word");
|
||||
//node.InnerText = s;
|
||||
//_userWordDictionary.DocumentElement.AppendChild(node);
|
||||
//_userWordDictionary.Save(_dictionaryFolder + _languageName + "_user.xml");
|
||||
}
|
||||
break;
|
||||
case SpellCheckAction.AddToNamesEtc:
|
||||
|
Loading…
Reference in New Issue
Block a user