feat: sync download sources

This commit is contained in:
Chubby Granny Chaser
2025-03-31 00:14:07 +01:00
parent 9b8a0af8e9
commit e6fde48dbd
11 changed files with 146 additions and 46 deletions

View File

@@ -100,6 +100,11 @@ contextBridge.exposeInMainWorld("electron", {
/* Download sources */
putDownloadSource: (objectIds: string[]) =>
ipcRenderer.invoke("putDownloadSource", objectIds),
createDownloadSource: (url: string) =>
ipcRenderer.invoke("createDownloadSource", url),
removeDownloadSource: (url: string, removeAll?: boolean) =>
ipcRenderer.invoke("removeDownloadSource", url, removeAll),
getDownloadSources: () => ipcRenderer.invoke("getDownloadSources"),
/* Library */
toggleAutomaticCloudSync: (