Show first instance when starting a second one (#149)

This commit is contained in:
Gelaechter
2023-07-01 19:45:08 +00:00
committed by GitHub
parent ba8e23e8d4
commit 22160ba59f
+4
View File
@@ -84,6 +84,10 @@ const singleInstance = app.requestSingleInstanceLock();
if (!singleInstance) {
app.quit();
} else {
app.on('second-instance', (_event, _argv, _workingDirectory) => {
mainWindow?.show();
});
}
const RESOURCES_PATH = app.isPackaged