Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 5b64d2f

Browse files
committed
fixed search window being topmost all the time
1 parent ec2e777 commit 5b64d2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

UI/MainWindow/MainWindowCommands.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ private void Command_FindReplace()
297297
}
298298
var findWindow = new FindReplaceWindow(selection);
299299
Program.IsSearchOpen = true;
300+
findWindow.Owner = this;
300301
findWindow.Show();
301302
findWindow.FindBox.Focus();
302303
}

UI/Windows/FindReplaceWindow.xaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
x:Class="SPCode.UI.Windows.FindReplaceWindow"
6-
WindowStartupLocation="CenterScreen"
6+
WindowStartupLocation="Manual"
77
GlowBrush="{DynamicResource AccentColorBrush}"
88
Background="{DynamicResource WhiteBrush}"
99
ResizeMode="NoResize"
1010
ShowTitleBar="True"
1111
ShowInTaskbar="True"
1212
Height="263"
1313
Width="536"
14-
Topmost="True"
1514
HorizontalAlignment="Center"
1615
VerticalAlignment="Center"
1716
UseNoneWindowStyle="False"

0 commit comments

Comments
 (0)