Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/LogExpert.UI/Dialogs/RegexHelperDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ private void OnCaseSensitiveCheckBoxCheckedChanged (object sender, EventArgs e)
private void OnButtonOkClick (object sender, EventArgs e)
{
var text = comboBoxRegex.Text;
comboBoxRegex.Items.Remove(text);
comboBoxRegex.Items.Insert(0, text);
_ = _expressionHistoryList.Remove(text);
_expressionHistoryList.Insert(0, text);

text = comboBoxTestText.Text;
comboBoxTestText.Items.Remove(text);
comboBoxTestText.Items.Insert(0, text);
_ = _testtextHistoryList.Remove(text);
_testtextHistoryList.Insert(0, text);

if (comboBoxRegex.Items.Count > MAX_HISTORY)
{
Expand Down
Loading
Loading