Upload FastSeekWpf/MainWindow.xaml.cs
Browse files
FastSeekWpf/MainWindow.xaml.cs
CHANGED
|
@@ -307,11 +307,8 @@ public partial class MainWindow : Window, INotifyPropertyChanged
|
|
| 307 |
|
| 308 |
private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
| 309 |
{
|
| 310 |
-
// Allow dragging the window by clicking anywhere on the background
|
| 311 |
if (e.ChangedButton == MouseButton.Left)
|
| 312 |
-
{
|
| 313 |
DragMove();
|
| 314 |
-
}
|
| 315 |
}
|
| 316 |
|
| 317 |
private void FadeOutAndHide()
|
|
@@ -407,6 +404,7 @@ public partial class MainWindow : Window, INotifyPropertyChanged
|
|
| 407 |
private void SearchBox_TextChanged(object sender, TextChangedEventArgs e)
|
| 408 |
{
|
| 409 |
var query = SearchBox.Text.Trim();
|
|
|
|
| 410 |
|
| 411 |
if (string.IsNullOrEmpty(query))
|
| 412 |
{
|
|
@@ -450,6 +448,8 @@ public partial class MainWindow : Window, INotifyPropertyChanged
|
|
| 450 |
results = SearchEngine.Search(_index, query, 50, _caseSensitive, _excludedDirs);
|
| 451 |
}
|
| 452 |
|
|
|
|
|
|
|
| 453 |
var items = results.Select((r, i) => new ResultItem
|
| 454 |
{
|
| 455 |
FullPath = r.FullPath,
|
|
|
|
| 307 |
|
| 308 |
private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
| 309 |
{
|
|
|
|
| 310 |
if (e.ChangedButton == MouseButton.Left)
|
|
|
|
| 311 |
DragMove();
|
|
|
|
| 312 |
}
|
| 313 |
|
| 314 |
private void FadeOutAndHide()
|
|
|
|
| 404 |
private void SearchBox_TextChanged(object sender, TextChangedEventArgs e)
|
| 405 |
{
|
| 406 |
var query = SearchBox.Text.Trim();
|
| 407 |
+
Logger.Log($"SearchBox query: '{query}' (index={_index.Count:N0})");
|
| 408 |
|
| 409 |
if (string.IsNullOrEmpty(query))
|
| 410 |
{
|
|
|
|
| 448 |
results = SearchEngine.Search(_index, query, 50, _caseSensitive, _excludedDirs);
|
| 449 |
}
|
| 450 |
|
| 451 |
+
Logger.Log($"Search '{query}': {results.Count} results returned to UI");
|
| 452 |
+
|
| 453 |
var items = results.Select((r, i) => new ResultItem
|
| 454 |
{
|
| 455 |
FullPath = r.FullPath,
|