ui: rename collapse/expand list to just show/hide

electron app: use single-instance lock to avoid multiple instances (will not work with indexeddb)
This commit is contained in:
Ilya Kreymer
2020-06-10 10:25:09 -07:00
parent 935bb2a828
commit cceb1ea457
3 changed files with 15 additions and 2 deletions
+13
View File
@@ -72,6 +72,19 @@ var proxyTS;
var mainWindow;
// Single instance lock
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) {
console.log("App already running, opening new window in first instance and quitting");
app.quit();
} else {
app.on('second-instance', (event, commandLine, workingDirectory) => {
// Just create a new window in case of second instance request
createWindow();
});
}
function bufferToStream(data) {
const rv = new PassThrough();