Minor tweak

This commit is contained in:
ryochan7@protonmail.com 2019-12-30 01:18:33 -06:00
parent e39cccf279
commit cd35daee42

View File

@ -301,7 +301,10 @@ Suspend support not enabled.", true);
Dispatcher.BeginInvoke((Action)(() => Dispatcher.BeginInvoke((Action)(() =>
{ {
int count = logListView.Items.Count; int count = logListView.Items.Count;
logListView.ScrollIntoView(logvm.LogItems[count > 0 ? count-1 : 0]); if (count > 0)
{
logListView.ScrollIntoView(logvm.LogItems[count - 1]);
}
})); }));
} }
} }