mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Remove .Activate()
This commit is contained in:
parent
d3384bf677
commit
43257ea9cf
1 changed files with 2 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue