From a3bf44285f8596e3be8c71eab6235c5c605d1a9d Mon Sep 17 00:00:00 2001 From: Aytackydln Date: Fri, 30 Aug 2024 20:13:59 +0200 Subject: [PATCH] add null check for profile change method --- Project-Aurora/Project-Aurora/ConfigUi.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project-Aurora/Project-Aurora/ConfigUi.xaml.cs b/Project-Aurora/Project-Aurora/ConfigUi.xaml.cs index 5be47b335..6b53015f5 100755 --- a/Project-Aurora/Project-Aurora/ConfigUi.xaml.cs +++ b/Project-Aurora/Project-Aurora/ConfigUi.xaml.cs @@ -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); }