Skip to content

Commit 43257ea

Browse files
committed
Remove .Activate()
1 parent d3384bf commit 43257ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Flow.Launcher/Helper/SingletonWindowOpener.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ public static T Open<T>(params object[] args) where T : Window
1414

1515

1616
// Fix UI bug
17+
// Add `window.WindowState = WindowState.Normal`
1718
// If only use `window.Show()`, Settings-window doesn't show when minimized in taskbar
1819
// Not sure why this works tho
19-
// Probably because, when `.Show()` failed, `window.WindowState == Minimized` (not `Normal`)
20+
// Probably because, when `.Show()` fails, `window.WindowState == Minimized` (not `Normal`)
2021
// https://stackoverflow.com/a/59719760/4230390
21-
// Not sure why need .Activate() too
2222
window.WindowState = WindowState.Normal;
2323
window.Show();
24-
window.Activate();
2524

2625

2726
window.Focus();

0 commit comments

Comments
 (0)