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
+1 -1
View File
@@ -252,7 +252,7 @@ class CollIndex extends LitElement
<div class="sort-header is-small">
<a @click=${(e) => this.hideHeader = !this.hideHeader} class="collapse button is-small">
<span class="icon"><fa-icon .svg=${this.hideHeader ? fasArrowDown : fasArrowUp}></span>
<span>${this.hideHeader ? 'Collapse List' : 'Expand List'}</span>
<span>${this.hideHeader ? 'Show' : 'Hide'}</span>
</a>
</div>
<nav class="panel is-light">
+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();
+1 -1
View File
@@ -563,7 +563,7 @@ const ae=new WeakMap,oe=v(e=>t=>{if(!(t instanceof T))throw new Error("unsafeSVG
<div class="sort-header is-small">
<a @click=${e=>this.hideHeader=!this.hideHeader} class="collapse button is-small">
<span class="icon"><fa-icon .svg=${this.hideHeader?Be.a:Me.a}></span>
<span>${this.hideHeader?"Collapse List":"Expand List"}</span>
<span>${this.hideHeader?"Show":"Hide"}</span>
</a>
</div>
<nav class="panel is-light">