Minimize to Tray and return to same window


#1

Hi. I have a problem when I minimize my app to tray.

I use the function hide() to hide my app and it work’s, but, when I call the function show() a new window is created, and this is a probleam becuse I use the serial port.

Is there away to show my old window again?

EX:

tray = new Tray(’./img/On.png’);
tray.setToolTip(‘Dloger VT’);
tray.addListener(‘click’,function (){
this.destroy();
})


#2

EX:

tray = new Tray(’./img/On.png’);
tray.setToolTip(‘Dloger VT’);
tray.addListener(‘click’,function (){
win.show()
this.destroy();
})
win.hide();