From ad5b5446c397359ce99e5529f8299bed94ed5f7b Mon Sep 17 00:00:00 2001 From: rampaa Date: Sat, 14 Dec 2024 14:47:41 +0300 Subject: [PATCH] Minor --- JL.Windows/GUI/MainWindow.xaml.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/JL.Windows/GUI/MainWindow.xaml.cs b/JL.Windows/GUI/MainWindow.xaml.cs index b9fbd126..49377842 100644 --- a/JL.Windows/GUI/MainWindow.xaml.cs +++ b/JL.Windows/GUI/MainWindow.xaml.cs @@ -1629,9 +1629,8 @@ private void Window_MouseEnter(object sender, MouseEventArgs e) Background.Opacity = OpacitySlider.Value / 100; } - if (configManager.Focusable - && !FirstPopupWindow.IsVisible - && configManager.MainWindowFocusOnHover) + if (!FirstPopupWindow.IsVisible + && configManager is { Focusable: true, MainWindowFocusOnHover: true }) { _ = Activate(); }