update tray icon for windows
This commit is contained in:
parent
3b94013da3
commit
a07801f8bb
4 changed files with 8 additions and 6 deletions
|
@ -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: {
|
||||||
|
|
|
@ -34,7 +34,7 @@ let daemon;
|
||||||
|
|
||||||
const appState = {};
|
const appState = {};
|
||||||
|
|
||||||
const installExtensions = async () => {
|
const installExtensions = async() => {
|
||||||
const devtronExtension = require('devtron');
|
const devtronExtension = require('devtron');
|
||||||
return await devtronExtension.install();
|
return await devtronExtension.install();
|
||||||
};
|
};
|
||||||
|
@ -53,7 +53,7 @@ if (isDev) {
|
||||||
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = true;
|
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
app.on('ready', async () => {
|
app.on('ready', async() => {
|
||||||
let isDaemonRunning = false;
|
let isDaemonRunning = false;
|
||||||
await Lbry.status()
|
await Lbry.status()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
@ -86,7 +86,7 @@ app.on('ready', async () => {
|
||||||
startSandbox();
|
startSandbox();
|
||||||
|
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
//await installExtensions();
|
// await installExtensions();
|
||||||
const {
|
const {
|
||||||
default: installExtension,
|
default: installExtension,
|
||||||
REACT_DEVELOPER_TOOLS,
|
REACT_DEVELOPER_TOOLS,
|
||||||
|
@ -107,7 +107,10 @@ app.on('ready', async () => {
|
||||||
.catch(err => console.log('An error occurred: ', err));
|
.catch(err => console.log('An error occurred: ', err));
|
||||||
}
|
}
|
||||||
|
|
||||||
rendererWindow = createWindow(appState);
|
if (app.requestSingleInstanceLock()) {
|
||||||
|
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 |
BIN
static/img/tray/windows/tray.png
Normal file
BIN
static/img/tray/windows/tray.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
Loading…
Reference in a new issue