mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-16 02:11:52 +02:00
Implemented the interaction between the gui and main so that the ai/transcript names get loaded inside the dropdowns
This commit is contained in:
@@ -10,6 +10,14 @@ try {
|
||||
contextBridge.exposeInMainWorld("electronAPI", {
|
||||
getFilePath: (file) => {return webUtils.getPathForFile(file)}
|
||||
})
|
||||
contextBridge.exposeInMainWorld("onStartup", {
|
||||
getModuleNames: (file) => { ipcRenderer.send("get_modules", "")}
|
||||
})
|
||||
|
||||
ipcRenderer.on("modules", (event, resp) => {
|
||||
loadAiOptions(resp.ai_modules);
|
||||
loadTranscriptionOptions(resp.transcription_modules);
|
||||
})
|
||||
} catch (error) {
|
||||
console.log("Error in preload.js");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user