devdocs-desktop
devdocs-desktop copied to clipboard
toggleWindow: minimize before hide to return focus
Fixes issue #50
not sure about this fix, but it shouldn't minimize window on macOS and probably linux either?
Sure, would not be surprised if it behaved differently in other OSes, but cannot test.
Just telling that calling minimize before hide fixes the "nothing is active after toggle or close" issue on my machine (tested).
(I've encountered similar misbehavior when manipulating windows with AutoHotkey, so it seemed quite familiar.)