feat: parallele Proxy-Segmentdownloads

This commit is contained in:
Sucukdeluxe
2026-08-31 12:49:15 +02:00
parent 50f04b2761
commit 17ac99d373
20 changed files with 1275 additions and 52 deletions
+15 -4
View File
@@ -938,14 +938,25 @@ function registerIpcHandlers(): void {
throw error;
}
});
handleTrusted(IPC_CHANNELS.PICK_FOLDER, async () => {
handleTrusted(IPC_CHANNELS.PICK_FOLDER, async () => {
const options = {
properties: ["openDirectory", "createDirectory"] as Array<"openDirectory" | "createDirectory">
};
const result = mainWindow ? await dialog.showOpenDialog(mainWindow, options) : await dialog.showOpenDialog(options);
return result.canceled ? null : result.filePaths[0] || null;
});
handleTrusted(IPC_CHANNELS.PICK_CONTAINERS, async () => {
return result.canceled ? null : result.filePaths[0] || null;
});
handleTrusted(IPC_CHANNELS.PICK_PROXY_LIST, async () => {
const options = {
properties: ["openFile"] as Array<"openFile">,
filters: [
{ name: "Proxy-Listen", extensions: ["txt", "list"] },
{ name: "Alle Dateien", extensions: ["*"] }
]
};
const result = mainWindow ? await dialog.showOpenDialog(mainWindow, options) : await dialog.showOpenDialog(options);
return result.canceled ? null : result.filePaths[0] || null;
});
handleTrusted(IPC_CHANNELS.PICK_CONTAINERS, async () => {
const options = {
properties: ["openFile", "multiSelections"] as Array<"openFile" | "multiSelections">,
filters: [