mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[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.
This commit is contained in:
@@ -73,6 +73,7 @@ namespace Peek.UI
|
|||||||
if (IsNewSingleSelectedItem(foregroundWindowHandle))
|
if (IsNewSingleSelectedItem(foregroundWindowHandle))
|
||||||
{
|
{
|
||||||
Initialize(foregroundWindowHandle);
|
Initialize(foregroundWindowHandle);
|
||||||
|
Activate(); // Brings existing window into focus in case it was previously minimized
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user