修复打包错误

This commit is contained in:
xuncha committed 2026-01-31 15:39:59 +08:00
1 parent 6e3bb9e361
commit d47166e6f9
7 files changed
+50 -31

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ export const VoiceTranscribeDialog: React.FC<VoiceTranscribeDialogProps> = ({
return
}
const removeListener = window.electronAPI.whisper.onDownloadProgress((payload) => {
const removeListener = window.electronAPI.whisper.onDownloadProgress((payload: { modelName: string; downloadedBytes: number; totalBytes?: number; percent?: number }) => {
if (payload.percent !== undefined) {
setDownloadProgress(payload.percent)
}