Skip to content

Commit 6fce369

Browse files
committed
fix progress color in Locate operation
1 parent 1b57ad8 commit 6fce369

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

GitContentSearch.UI/ViewModels/MainWindowViewModel.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,7 @@ await Avalonia.Threading.Dispatcher.UIThread.InvokeAsync(() =>
476476
IsLocating = false;
477477
IsSearching = false;
478478
IsProcessingCommand = false; // Always reset in finally block
479-
// Reset IsLocateOperation when the operation is complete
480-
IsLocateOperation = false;
479+
// Keep IsLocateOperation true until a new operation starts
481480
});
482481

483482
_cancellationTokenSource?.Dispose();
@@ -503,7 +502,7 @@ private void StartSearch()
503502
IsSearching = true;
504503
IsLocating = false; // Ensure IsLocating is reset when starting a search
505504
IsProcessingCommand = true; // Set to true when starting a command
506-
IsLocateOperation = false; // Reset the locate operation state when starting a search
505+
IsLocateOperation = false; // Reset the locate operation state when starting a new search
507506
ShowProgress = true;
508507
SearchProgress = 0;
509508
LogOutput.Clear();

0 commit comments

Comments
 (0)