cleanup comments, update translations, bump to 0.4.1
This commit is contained in:
parent
9edcc9841b
commit
7d8ab87eee
28 changed files with 412 additions and 1114 deletions
|
|
@ -3,9 +3,7 @@
|
|||
const { contextBridge, ipcRenderer } = require('electron')
|
||||
const { DIRS } = require('./paths')
|
||||
|
||||
// Single-slot event callbacks: every import modal used to register ANOTHER
|
||||
// listener and old ones never unregistered, so the file counter sped up per
|
||||
// import. Only the latest subscriber receives an event.
|
||||
// Single-slot event callbacks: only the latest subscriber receives an event.
|
||||
function singleSlot(channel) {
|
||||
let slot = null
|
||||
ipcRenderer.on(channel, (e, data) => {
|
||||
|
|
@ -17,8 +15,7 @@ function singleSlot(channel) {
|
|||
}
|
||||
|
||||
const onImportProgress = singleSlot('import:progress')
|
||||
// "Open with PLWL": files handed over via --open (Exec %f) - the renderer
|
||||
// shows the wine/prefix picker popup for them.
|
||||
// "Open with PLWL": files handed over via --open (Exec %f).
|
||||
const onOpenWith = singleSlot('openwith:file')
|
||||
// one sync (and one pending consent request, enforced server-side) at a time
|
||||
const onLanSyncProgress = singleSlot('lansync:progress')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue