mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Open file in workspace dialog now also remembers last searched string
This commit is contained in:
parent
a514c9c145
commit
fa064b1271
1 changed files with 9 additions and 1 deletions
|
@ -64,6 +64,8 @@ namespace IDE.ui
|
|||
public bool mFilterChanged;
|
||||
public volatile bool mExitingThread;
|
||||
public Thread mDateThread;
|
||||
|
||||
static String sLastSearchString = new String() ~ delete _;
|
||||
|
||||
public this()
|
||||
{
|
||||
|
@ -91,9 +93,15 @@ namespace IDE.ui
|
|||
AddWidget(mFileList);
|
||||
mTabWidgets.Add(mFileList);
|
||||
|
||||
mEditWidget = AddEdit("");
|
||||
mEditWidget = AddEdit(sLastSearchString);
|
||||
mEditWidget.mOnKeyDown.Add(new => EditKeyDownHandler);
|
||||
mEditWidget.mOnContentChanged.Add(new (evt) => { mFilterChanged = true; });
|
||||
|
||||
mOnClosed.Add(new () =>
|
||||
{
|
||||
sLastSearchString.Clear();
|
||||
mEditWidget.GetText(sLastSearchString);
|
||||
});
|
||||
}
|
||||
|
||||
void ShutdownThread()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue