[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:
Родитель
4951a63352
Коммит
8896cf83cd
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче