Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 3de4c13

Browse files
committed
clear search pad toolbar items when ClearLastSearchesList() is called
1 parent 20e7f5c commit 3de4c13

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Main/Base/Project/Editor/Search/SearchResultsPad.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ public void ClearLastSearchesList()
100100
activeSearchResult = null;
101101
}
102102
SD.WinForms.SetContent(contentPlaceholder, null);
103+
// clear search pad toolbar items when ClearLastSearchesList() is called
104+
toolBar.Items.Clear();
105+
foreach (object toolBarItem in defaultToolbarItems) {
106+
toolBar.Items.Add(toolBarItem);
107+
}
103108
}
104109

105110
/// <summary>

0 commit comments

Comments
 (0)