Merge commit '90825436520562cc7638f885b70286f765d9f20a' into feature/modular-ipc-system-implementation

This commit is contained in:
2025-11-24 14:15:23 +01:00
2 changed files with 6 additions and 9 deletions
+1 -6
View File
@@ -12,7 +12,7 @@ try {
})
contextBridge.exposeInMainWorld("onStartup", {
getModuleNames: (file) => { ipcRenderer.send("get_modules", "")}
getModuleNames: () => ipcRenderer.invoke('get-module-names')
})
@@ -22,11 +22,6 @@ try {
})
ipcRenderer.on("error", (event, err) => {alert(err)})
ipcRenderer.on("modules", (event, resp) => {
loadAiOptions(resp.ai_modules);
loadTranscriptionOptions(resp.transcription_modules);
})
} catch (error) {
console.log("Error in preload.js");
}
+5 -3
View File
@@ -31,12 +31,14 @@ uploadContainer.addEventListener("drop", (e) => {
}
})
window.addEventListener('load', (e) => {
window.addEventListener('load', async (e) => {
try {
console.log("test");
loadLanguageOptions();
window.onStartup.getModuleNames();
const value = await window.onStartup.getModuleNames();
loadAiOptions(value.ai_modules);
loadTranscriptionOptions(value.transcription_modules);
} catch (error) {
}