Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Feb 16, 2024
1 parent 919d34c commit f54e287
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JL.Windows/GUI/ReadingSelectionWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
SizeToContent="WidthAndHeight" WindowStyle="None" Topmost="True"
ShowInTaskbar="False" AllowsTransparency="True" Focusable="False" x:ClassModifier="internal">
SizeToContent="WidthAndHeight" WindowStyle="None" Topmost="True" LostFocus="Window_LostFocus"
ShowInTaskbar="False" AllowsTransparency="True" x:ClassModifier="internal">
<Grid>
<ListView x:Name="ReadingsListView" VirtualizingStackPanel.VirtualizationMode="Recycling" Focusable="False"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
Expand Down
5 changes: 5 additions & 0 deletions JL.Windows/GUI/ReadingSelectionWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,9 @@ public static void HideWindow()
{
s_instance?.Hide();
}

private void Window_LostFocus(object sender, RoutedEventArgs e)
{
Hide();
}
}

0 comments on commit f54e287

Please sign in to comment.