Skip to content

Commit

Permalink
修复切换选项卡时数据列表不更新的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cfrpg committed Nov 23, 2019
1 parent 6cb2ada commit 9b96562
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SharpBladeFlightAnalyzer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,15 @@ private void Button_Click(object sender, RoutedEventArgs e)
private void mainTabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (mainTabControl.SelectedIndex != mainTabControl.Items.Count - 1 && mainTabControl.SelectedIndex != -1)
{
currentPage = (LogPageControl)((TabPage)mainTabControl.SelectedItem).Content;
setFieldList();
}
else
{
currentPage = null;
fieldListWindow.fieldList.ItemsSource = null;
}
}
}
}

0 comments on commit 9b96562

Please sign in to comment.