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:
+1
-1
@@ -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">
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user