more log replacement

This commit is contained in:
Matt Parker
2025-10-24 19:41:56 +10:00
parent 21e5218ea3
commit c174bc09da
4 changed files with 16 additions and 7 deletions

View File

@@ -14,6 +14,8 @@ public partial class SearchAllFilesWindow : PopupPanel
private CancellationTokenSource _cancellationTokenSource = new();
[Inject] private readonly SearchService _searchService = null!;
public override void _Ready()
{
_resultCountLabel = GetNode<Label>("%ResultCountLabel");
@@ -43,7 +45,7 @@ public partial class SearchAllFilesWindow : PopupPanel
private async Task Search(string text, CancellationToken cancellationToken)
{
var result = await SearchService.FindFiles(Solution, text, cancellationToken);
var result = await _searchService.FindFiles(Solution, text, cancellationToken);
if (cancellationToken.IsCancellationRequested) return;
await this.InvokeAsync(() =>
{

View File

@@ -14,6 +14,8 @@ public partial class SearchWindow : PopupPanel
private CancellationTokenSource _cancellationTokenSource = new();
[Inject] private readonly SearchService _searchService = null!;
public override void _Ready()
{
_resultCountLabel = GetNode<Label>("%ResultCountLabel");
@@ -43,7 +45,7 @@ public partial class SearchWindow : PopupPanel
private async Task Search(string text, CancellationToken cancellationToken)
{
var result = await SearchService.FindInFiles(Solution, text, cancellationToken);
var result = await _searchService.FindInFiles(Solution, text, cancellationToken);
if (cancellationToken.IsCancellationRequested) return;
await this.InvokeAsync(() =>
{