From 8896cf83cda45b95265f350aad5288c1770d7cfa Mon Sep 17 00:00:00 2001 From: Asif Islam <77113884+asif4318@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:28:44 -0500 Subject: [PATCH] [Peek]Bring into foreground if previously minimized (#36506) Added Activate() to bring Peek.UI window into focus upon Toggle. This allows the UI to be presented even if it was previously minimized. --- src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs b/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs index 3ac494b652..7295dd1dcc 100644 --- a/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs +++ b/src/modules/peek/Peek.UI/PeekXAML/MainWindow.xaml.cs @@ -73,6 +73,7 @@ namespace Peek.UI if (IsNewSingleSelectedItem(foregroundWindowHandle)) { Initialize(foregroundWindowHandle); + Activate(); // Brings existing window into focus in case it was previously minimized } else {