update tray icon for windows

This commit is contained in:
Sean Yesmunt 2019-03-20 13:57:31 -04:00
parent 3b94013da3
commit a07801f8bb
4 changed files with 8 additions and 6 deletions

View file

@ -12,7 +12,7 @@ export default window => {
break; break;
} }
case 'win32': { case 'win32': {
iconPath = 'static/img/tray/windows/tray.ico'; iconPath = 'static/img/tray/windows/tray.png';
break; break;
} }
default: { default: {

View file

@ -107,7 +107,10 @@ app.on('ready', async () => {
.catch(err => console.log('An error occurred: ', err)); .catch(err => console.log('An error occurred: ', err));
} }
if (app.requestSingleInstanceLock()) {
rendererWindow = createWindow(appState); rendererWindow = createWindow(appState);
}
rendererWindow.webContents.on('devtools-opened', () => { rendererWindow.webContents.on('devtools-opened', () => {
rendererWindow.webContents.send('devtools-is-opened'); rendererWindow.webContents.send('devtools-is-opened');
}); });
@ -309,7 +312,6 @@ process.on('uncaughtException', error => {
}); });
// Force single instance application // Force single instance application
app.requestSingleInstanceLock();
app.on('second-instance', (event, argv) => { app.on('second-instance', (event, argv) => {
if (rendererWindow) { if (rendererWindow) {
if ( if (

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB