Skip to content

Commit aef8367

Browse files
feature: automatically scroll to the end of the log
1 parent f00b159 commit aef8367

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Views/CommandLogContentPresenter.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,15 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
146146
{
147147
Text = string.Empty;
148148
}
149+
ScrollToEnd();
149150
}
150151
else if (change.Property == PureTextProperty)
151152
{
152153
if (!string.IsNullOrEmpty(PureText))
154+
{
153155
Text = PureText;
156+
ScrollToEnd();
157+
}
154158
}
155159
}
156160

0 commit comments

Comments
 (0)