diff --git a/DS4Windows/DS4Forms/MainWindow.xaml.cs b/DS4Windows/DS4Forms/MainWindow.xaml.cs index 619c208..802f88f 100644 --- a/DS4Windows/DS4Forms/MainWindow.xaml.cs +++ b/DS4Windows/DS4Forms/MainWindow.xaml.cs @@ -301,7 +301,10 @@ Suspend support not enabled.", true); Dispatcher.BeginInvoke((Action)(() => { int count = logListView.Items.Count; - logListView.ScrollIntoView(logvm.LogItems[count > 0 ? count-1 : 0]); + if (count > 0) + { + logListView.ScrollIntoView(logvm.LogItems[count - 1]); + } })); } }