fix: ShowPage null reference when RadioButton.checked fires during XAML load
This commit is contained in:
@@ -39,7 +39,10 @@ namespace BetterSeewo.Manager
|
||||
private void ShowPage(StackPanel page)
|
||||
{
|
||||
foreach (var p in new[] { PageInstall, PageInk, PageConvert, PageTouch, PageActivate })
|
||||
p.Visibility = p == page ? Visibility.Visible : Visibility.Collapsed;
|
||||
{
|
||||
if (p != null)
|
||||
p.Visibility = p == page ? Visibility.Visible : Visibility.Collapsed;
|
||||
}
|
||||
}
|
||||
|
||||
private void Minimize_Click(object s, RoutedEventArgs e) => WindowState = WindowState.Minimized;
|
||||
|
||||
Reference in New Issue
Block a user