mirror of
https://github.com/HiMeditator/auto-caption.git
synced 2026-02-13 11:04:51 +08:00
feat(engine): 添加启动超时功能和强制终止引擎的支持
- 在 ControlWindow 中添加了 'control.engine.forceKill' 事件处理,允许强制终止引擎。 - 在 CaptionEngine 中实现了启动超时机制,若引擎启动超时,将自动强制停止并发送错误消息。 - 更新了国际化文件,添加了与启动超时相关的提示信息。 - 在 EngineControl 组件中添加了启动超时的输入选项,允许用户设置超时时间。 - 更新了相关类型定义以支持新的启动超时配置。
This commit is contained in:
@@ -159,6 +159,10 @@ class ControlWindow {
|
||||
captionEngine.stop()
|
||||
})
|
||||
|
||||
ipcMain.on('control.engine.forceKill', () => {
|
||||
captionEngine.forceKill()
|
||||
})
|
||||
|
||||
ipcMain.on('control.captionLog.clear', () => {
|
||||
allConfig.captionLog.splice(0)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user