w3champions / launcher

This is the launcher for w3champions. It includes the needed flo hostbot executables.
32 stars 18 forks source link

W3C-205 Fix Close of Maximized Launcher; Remember Maximized State #159

Closed mikellalec closed 1 year ago

mikellalec commented 1 year ago

Longer context/investigation on the JIRA task, issue is related to the transparent launcher window and Electron 11.

With a workaround implementation of isMaximized(), it's possible to correctly maximize() as needed before hiding the launcher. Chose to call original maximize() before the hide() and not add the other workaround implementations for minimal addition.

Even with workaround - including getWindowBounds() caused the freeze again. When the Windows native maximize is used to maximize the transparent window, resized event is not triggered. Updating the bounds on resize for the maximize (the double-click) resolves the issue again.

Store the state of whether the launcher was maximized before hiding. Restoring from the tray is a show event - check if the user had their launcher maximized and maximize it if so.