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:
parent
701cb15349
commit
a514c9c145
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue