go-astilectron icon indicating copy to clipboard operation
go-astilectron copied to clipboard

How to make the tray flicker when the window is not focused?

Open huiruo opened this issue 6 years ago • 1 comments

In electron I use like this(js code):

if (!win.isFocused()) { 
            win.showInactive()  //show and not focused
            win.flashFrame(true) //flicker to attract the user's attention 
 }

How do I implement the function in astilectron? Thanks a lot!

huiruo avatar May 28 '19 15:05 huiruo

As I mentioned in #169, I won't have time to work on this any time soon, therefore if anybody feels like implementing that I'd be happy to review a PR.

asticode avatar Jun 11 '19 13:06 asticode