From 43257ea9cf5655c6c11cdc70e2eec5cb8cb15b20 Mon Sep 17 00:00:00 2001 From: pc223 <10551242+pc223@users.noreply.github.com> Date: Tue, 22 Jun 2021 23:28:21 +0700 Subject: [PATCH] Remove .Activate() --- Flow.Launcher/Helper/SingletonWindowOpener.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/Helper/SingletonWindowOpener.cs b/Flow.Launcher/Helper/SingletonWindowOpener.cs index b969abcb4..3b2b3631d 100644 --- a/Flow.Launcher/Helper/SingletonWindowOpener.cs +++ b/Flow.Launcher/Helper/SingletonWindowOpener.cs @@ -14,14 +14,13 @@ namespace Flow.Launcher.Helper // Fix UI bug + // Add `window.WindowState = WindowState.Normal` // If only use `window.Show()`, Settings-window doesn't show when minimized in taskbar // Not sure why this works tho - // Probably because, when `.Show()` failed, `window.WindowState == Minimized` (not `Normal`) + // Probably because, when `.Show()` fails, `window.WindowState == Minimized` (not `Normal`) // https://stackoverflow.com/a/59719760/4230390 - // Not sure why need .Activate() too window.WindowState = WindowState.Normal; window.Show(); - window.Activate(); window.Focus();