Skip to content

Commit b780dde

Browse files
committed
Merge branch 'development' of https://github.com/fdorg/flashdevelop into development
2 parents 7665092 + 491bd40 commit b780dde

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

External/Plugins/ProjectManager/Controls/OpenResourceForm.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class OpenResourceForm : SmartForm
2424
private System.Windows.Forms.CheckBox cbInClasspathsOnly;
2525
private System.Windows.Forms.CheckBox checkBox;
2626
private System.Windows.Forms.Button refreshButton;
27+
private static string previousSearch;
2728

2829
public OpenResourceForm(PluginMain plugin)
2930
{
@@ -206,7 +207,10 @@ private void OpenResourceFormActivated(Object sender, EventArgs e)
206207
if (openedFiles == null) this.CreateFileList();
207208
else
208209
{
209-
this.textBox.Text = "";
210+
this.textBox.Focus();
211+
this.textBox.Text = previousSearch;
212+
this.textBox.SelectAll();
213+
210214
this.UpdateOpenFiles();
211215
this.textBox.Focus();
212216
}
@@ -509,6 +513,12 @@ private void ListBoxResize(Object sender, EventArgs e)
509513

510514
#endregion
511515

516+
protected override void OnClosed(EventArgs e)
517+
{
518+
base.OnClosed(e);
519+
previousSearch = this.textBox.Text;
520+
}
521+
512522
}
513523

514524
#region Helpers

0 commit comments

Comments
 (0)