1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 15:46:05 +02:00

Find class dialog now remembers last searched string

This commit is contained in:
MineGame159 2021-10-31 15:08:47 +01:00
parent 701cb15349
commit a514c9c145

View file

@ -13,6 +13,8 @@ namespace IDE.ui
{
class ClassViewPanel : Panel
{
private static String sLastSearchString = new String() ~ delete _;
public class ClassViewListViewItem : IDEListViewItem
{
public float mLabelOffset;
@ -407,6 +409,15 @@ namespace IDE.ui
{
mWantsSubmit = true;
});
mSearchEdit.SetText(sLastSearchString);
mSearchEdit.Content.SelectAll();
findClassDialog.mOnClosed.Add(new () =>
{
sLastSearchString.Clear();
mSearchEdit.GetText(sLastSearchString);
});
}
//mListView.mDragEndHandler.Add(new => HandleDragEnd);