Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Dec 14, 2024
1 parent fd37353 commit ad5b544
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions JL.Windows/GUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit ad5b544

Please sign in to comment.