Skip to content

Commit

Permalink
Limit new code to non-auto-hide
Browse files Browse the repository at this point in the history
  • Loading branch information
dremin committed Nov 11, 2023
1 parent c85ae4f commit 7202cda
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions RetroBar/Taskbar.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,12 @@ private void Taskbar_OnSizeChanged(object sender, SizeChangedEventArgs e)

private void Taskbar_Deactivated(object sender, EventArgs e)
{
// Prevent focus indicators and tooltips while not the active window
ResetControlFocus();
if (AppBarMode != AppBarMode.AutoHide)
{
// Prevent focus indicators and tooltips while not the active window
// When auto-hide is enabled, this is performed by auto-hide events instead
ResetControlFocus();
}
}

private void DateTimeMenuItem_OnClick(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit 7202cda

Please sign in to comment.