mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-31 09:21:27 +00:00
fix: issue with second instance startup
This commit is contained in:
parent
fcdb935687
commit
99828d048e
1 changed files with 19 additions and 17 deletions
|
@ -228,6 +228,7 @@ process.on('uncaughtException', error => {
|
||||||
|
|
||||||
// Force single instance application
|
// Force single instance application
|
||||||
const isSecondInstance = app.makeSingleInstance(argv => {
|
const isSecondInstance = app.makeSingleInstance(argv => {
|
||||||
|
if (rendererWindow) {
|
||||||
if (
|
if (
|
||||||
(process.platform === 'win32' || process.platform === 'linux') &&
|
(process.platform === 'win32' || process.platform === 'linux') &&
|
||||||
String(argv[1]).startsWith('lbry')
|
String(argv[1]).startsWith('lbry')
|
||||||
|
@ -249,6 +250,7 @@ const isSecondInstance = app.makeSingleInstance(argv => {
|
||||||
}
|
}
|
||||||
|
|
||||||
rendererWindow.show();
|
rendererWindow.show();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isSecondInstance) {
|
if (isSecondInstance) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue