Debug - Fixed threading issue with LogStore

also made the logger viewer text searching much more efficient
This commit is contained in:
Diogo Trindade committed 2023-03-01 17:35:35 +00:00
1 parent a7ed4de575
commit 1b62109961
2 files changed
+22 -5

No files matched your search

@@ -63,7 +63,7 @@ public class LogsDebugViewModel : ActivatableViewModelBase
private void RemoveOldestLine()
{
int firstNewLine = Document.Text.IndexOf('\n');
int firstNewLine = Document.IndexOf('\n', 0, Document.TextLength);
if (firstNewLine == -1)
{
//this should never happen.