mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Show first instance when starting a second one (#149)
This commit is contained in:
@@ -84,6 +84,10 @@ const singleInstance = app.requestSingleInstanceLock();
|
|||||||
|
|
||||||
if (!singleInstance) {
|
if (!singleInstance) {
|
||||||
app.quit();
|
app.quit();
|
||||||
|
} else {
|
||||||
|
app.on('second-instance', (_event, _argv, _workingDirectory) => {
|
||||||
|
mainWindow?.show();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const RESOURCES_PATH = app.isPackaged
|
const RESOURCES_PATH = app.isPackaged
|
||||||
|
|||||||
Reference in New Issue
Block a user