Skip to content

Commit ada497a

Browse files
committed
...
1 parent 4858f6c commit ada497a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SmartImage 3/Mode/Shell/ShellMode.Handlers.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,16 @@ private void Queue_Dialog()
188188
tf.TextChanging += a =>
189189
{
190190

191-
var s = a.NewText.ToString();
191+
var s = a.NewText.ToString().CleanString();
192192

193193
if (SearchQuery.IsValidSourceType(s)) {
194194
Queue.Enqueue(s);
195195
lv.Source = new ListWrapper(Queue.ToList());
196196
tf.DeleteAll();
197197
tf.Text = ustring.Empty;
198198
a.Cancel = true;
199+
a.NewText = ustring.Empty;
200+
tf.DeleteAll();
199201
tf.SetFocus();
200202
tf.SetNeedsDisplay();
201203
}

0 commit comments

Comments
 (0)