Skip to content

Commit

Permalink
add null check for profile change method
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Aug 30, 2024
1 parent fb73820 commit a3bf442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Project-Aurora/Project-Aurora/ConfigUi.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ private void ctrlLayerManager_PreviewMouseDown(object? sender, MouseButtonEventA
}

private void ctrlOverlayLayerManager_PreviewMouseDown(object? sender, MouseButtonEventArgs e) {
if (_selectedManager != sender)
if (_selectedManager != sender && FocusedApplication != null)
SelectedControl = FocusedApplication.Profile.OverlayLayers.Count > 0 ? _layerPresenter : FocusedApplication.Control;
UpdateManagerStackFocus(sender);
}
Expand Down

0 comments on commit a3bf442

Please sign in to comment.