fix: duration bug in auto-finalize path and add i18n for pause tooltip

This commit is contained in:
Siddharth
2026-04-05 09:39:28 -07:00
parent b002f2a485
commit 7072c05edd
5 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -456,7 +456,7 @@ export function LaunchWindow() {
</button>
{recording && (
<Tooltip content={paused ? "Resume recording" : "Pause recording"}>
<Tooltip content={paused ? t("tooltips.resumeRecording") : t("tooltips.pauseRecording")}>
<button
className={`${hudIconBtnClasses} ${styles.electronNoDrag}`}
onClick={togglePaused}
+1 -3
View File
@@ -112,9 +112,7 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
const getRecordingDurationMs = useCallback(() => {
const segmentDuration =
screenRecorder.current?.recorder.state === "recording" && segmentStartedAt.current
? Date.now() - segmentStartedAt.current
: 0;
segmentStartedAt.current === null ? 0 : Date.now() - segmentStartedAt.current;
return accumulatedDurationMs.current + segmentDuration;
}, []);
+2
View File
@@ -3,6 +3,8 @@
"hideHUD": "Hide HUD",
"closeApp": "Close App",
"restartRecording": "Restart recording",
"pauseRecording": "Pause recording",
"resumeRecording": "Resume recording",
"openVideoFile": "Open video file",
"openProject": "Open project"
},
+2
View File
@@ -3,6 +3,8 @@
"hideHUD": "Ocultar HUD",
"closeApp": "Cerrar aplicación",
"restartRecording": "Reiniciar grabación",
"pauseRecording": "Pausar grabación",
"resumeRecording": "Reanudar grabación",
"openVideoFile": "Abrir archivo de video",
"openProject": "Abrir proyecto"
},
+2
View File
@@ -3,6 +3,8 @@
"hideHUD": "隐藏控制面板",
"closeApp": "关闭应用",
"restartRecording": "重新开始录制",
"pauseRecording": "暂停录制",
"resumeRecording": "继续录制",
"openVideoFile": "打开视频文件",
"openProject": "打开项目"
},