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;
}
case 'win32': {
iconPath = 'static/img/tray/windows/tray.ico';
iconPath = 'static/img/tray/windows/tray.png';
break;
}
default: {

View file

@ -34,7 +34,7 @@ let daemon;
const appState = {};
const installExtensions = async () => {
const installExtensions = async() => {
const devtronExtension = require('devtron');
return await devtronExtension.install();
};
@ -53,7 +53,7 @@ if (isDev) {
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = true;
}
app.on('ready', async () => {
app.on('ready', async() => {
let isDaemonRunning = false;
await Lbry.status()
.then(() => {
@ -86,7 +86,7 @@ app.on('ready', async () => {
startSandbox();
if (isDev) {
//await installExtensions();
// await installExtensions();
const {
default: installExtension,
REACT_DEVELOPER_TOOLS,
@ -107,7 +107,10 @@ app.on('ready', async () => {
.catch(err => console.log('An error occurred: ', err));
}
rendererWindow = createWindow(appState);
if (app.requestSingleInstanceLock()) {
rendererWindow = createWindow(appState);
}
rendererWindow.webContents.on('devtools-opened', () => {
rendererWindow.webContents.send('devtools-is-opened');
});
@ -309,7 +312,6 @@ process.on('uncaughtException', error => {
});
// Force single instance application
app.requestSingleInstanceLock();
app.on('second-instance', (event, argv) => {
if (rendererWindow) {
if (

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB