mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 16:31:33 +00:00
Fix disappearing tray icon
This commit is contained in:
parent
f488bda4ba
commit
c79bca7644
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
import { app, Menu, Tray } from 'electron';
|
import { app, Menu, Tray } from 'electron';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
|
let tray;
|
||||||
|
|
||||||
export default window => {
|
export default window => {
|
||||||
let iconPath;
|
let iconPath;
|
||||||
|
|
||||||
|
@ -18,7 +20,7 @@ export default window => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const tray = new Tray(
|
tray = new Tray(
|
||||||
process.env.NODE_ENV === 'development' ? iconPath : path.join(process.resourcesPath, iconPath)
|
process.env.NODE_ENV === 'development' ? iconPath : path.join(process.resourcesPath, iconPath)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue