android-messages-desktop icon indicating copy to clipboard operation
android-messages-desktop copied to clipboard

Modifying handleTrayClick to minimize when window is visible

Open ben-bartholomew opened this issue 1 year ago • 1 comments
trafficstars

Very minor modification made to handleTrayClick to check if the window is visible before showing or hiding.

Note that the original enhancement calls for also bringing the window to the top/focus if it is hidden behind another window, but the page visibility API only allows that level of granularity (tracking if the window is occluded by another window) on macOS: https://www.electronjs.org/docs/latest/api/browser-window#page-visibility

On other platforms it will just show/hide based on minimized/visible.

Closes #412

ben-bartholomew avatar Jun 27 '24 18:06 ben-bartholomew

I'll give it a run after work.

OrangeDrangon avatar Jun 27 '24 18:06 OrangeDrangon