pull/932/head
Mikael Finstad 4 years ago
parent 375ee5d1d4
commit 72b9fe53a4
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -427,7 +427,7 @@ const App = memo(() => {
}, [detectedFps]);
const formatTimecode = useCallback(({ seconds, shorten }) => {
if (timecodeFormat === 'framesTotal') {
if (timecodeFormat === 'frameCount') {
const frameCount = getFrameCount(seconds);
return frameCount != null ? frameCount : '';
}

@ -54,7 +54,7 @@ const Settings = memo(({
}, [setLanguage]);
const timecodeFormatOptions = useMemo(() => ({
framesTotal: t('Frame numbers'),
frameCount: t('Frame counts'),
timecodeWithDecimalFraction: t('Millisecond fractions'),
timecodeWithFramesFraction: t('Frame fractions'),
}), [t]);
@ -174,7 +174,7 @@ const Settings = memo(({
<Row>
<KeyCell>{t('In timecode show')}</KeyCell>
<Table.TextCell>
<Button iconBefore={timecodeFormat === 'framesTotal' ? NumericalIcon : TimeIcon} onClick={onTimecodeFormatClick}>
<Button iconBefore={timecodeFormat === 'frameCount' ? NumericalIcon : TimeIcon} onClick={onTimecodeFormatClick}>
{timecodeFormatOptions[timecodeFormat]}
</Button>
</Table.TextCell>

Loading…
Cancel
Save