mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-18 08:06:04 +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
|
class ClassViewPanel : Panel
|
||||||
{
|
{
|
||||||
|
private static String sLastSearchString = new String() ~ delete _;
|
||||||
|
|
||||||
public class ClassViewListViewItem : IDEListViewItem
|
public class ClassViewListViewItem : IDEListViewItem
|
||||||
{
|
{
|
||||||
public float mLabelOffset;
|
public float mLabelOffset;
|
||||||
|
@ -407,6 +409,15 @@ namespace IDE.ui
|
||||||
{
|
{
|
||||||
mWantsSubmit = true;
|
mWantsSubmit = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
mSearchEdit.SetText(sLastSearchString);
|
||||||
|
mSearchEdit.Content.SelectAll();
|
||||||
|
|
||||||
|
findClassDialog.mOnClosed.Add(new () =>
|
||||||
|
{
|
||||||
|
sLastSearchString.Clear();
|
||||||
|
mSearchEdit.GetText(sLastSearchString);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//mListView.mDragEndHandler.Add(new => HandleDragEnd);
|
//mListView.mDragEndHandler.Add(new => HandleDragEnd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue