|
|
|
|
@ -7,7 +7,7 @@ import CaptureFormatButton from './components/CaptureFormatButton';
|
|
|
|
|
import AutoExportToggler from './components/AutoExportToggler';
|
|
|
|
|
import useUserSettings from './hooks/useUserSettings';
|
|
|
|
|
import { askForFfPath } from './dialogs';
|
|
|
|
|
import { isMasBuild } from './util';
|
|
|
|
|
import { isMasBuild, isStoreBuild } from './util';
|
|
|
|
|
import { langNames } from './util/constants';
|
|
|
|
|
|
|
|
|
|
import { keyMap } from './hooks/useTimelineScroll';
|
|
|
|
|
@ -31,7 +31,7 @@ const Settings = memo(({
|
|
|
|
|
}) => {
|
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
|
|
const { customOutDir, changeOutDir, keyframeCut, toggleKeyframeCut, timecodeFormat, setTimecodeFormat, invertCutSegments, setInvertCutSegments, askBeforeClose, setAskBeforeClose, enableAskForImportChapters, setEnableAskForImportChapters, enableAskForFileOpenAction, setEnableAskForFileOpenAction, autoSaveProjectFile, setAutoSaveProjectFile, invertTimelineScroll, setInvertTimelineScroll, language, setLanguage, ffmpegExperimental, setFfmpegExperimental, hideNotifications, setHideNotifications, autoLoadTimecode, setAutoLoadTimecode, enableTransferTimestamps, setEnableTransferTimestamps, enableAutoHtml5ify, setEnableAutoHtml5ify, customFfPath, setCustomFfPath, storeProjectInWorkingDir, setStoreProjectInWorkingDir, enableOverwriteOutput, setEnableOverwriteOutput, mouseWheelZoomModifierKey, setMouseWheelZoomModifierKey, captureFrameMethod, setCaptureFrameMethod, captureFrameQuality, setCaptureFrameQuality, captureFrameFileNameFormat, setCaptureFrameFileNameFormat, enableNativeHevc, setEnableNativeHevc } = useUserSettings();
|
|
|
|
|
const { customOutDir, changeOutDir, keyframeCut, toggleKeyframeCut, timecodeFormat, setTimecodeFormat, invertCutSegments, setInvertCutSegments, askBeforeClose, setAskBeforeClose, enableAskForImportChapters, setEnableAskForImportChapters, enableAskForFileOpenAction, setEnableAskForFileOpenAction, autoSaveProjectFile, setAutoSaveProjectFile, invertTimelineScroll, setInvertTimelineScroll, language, setLanguage, ffmpegExperimental, setFfmpegExperimental, hideNotifications, setHideNotifications, autoLoadTimecode, setAutoLoadTimecode, enableTransferTimestamps, setEnableTransferTimestamps, enableAutoHtml5ify, setEnableAutoHtml5ify, customFfPath, setCustomFfPath, storeProjectInWorkingDir, setStoreProjectInWorkingDir, enableOverwriteOutput, setEnableOverwriteOutput, mouseWheelZoomModifierKey, setMouseWheelZoomModifierKey, captureFrameMethod, setCaptureFrameMethod, captureFrameQuality, setCaptureFrameQuality, captureFrameFileNameFormat, setCaptureFrameFileNameFormat, enableNativeHevc, setEnableNativeHevc, enableUpdateCheck, setEnableUpdateCheck } = useUserSettings();
|
|
|
|
|
|
|
|
|
|
const onLangChange = useCallback((e) => {
|
|
|
|
|
const { value } = e.target;
|
|
|
|
|
@ -314,6 +314,19 @@ const Settings = memo(({
|
|
|
|
|
</Row>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{!isStoreBuild && (
|
|
|
|
|
<Row>
|
|
|
|
|
<KeyCell>{t('Check for updates on startup?')}</KeyCell>
|
|
|
|
|
<Table.TextCell>
|
|
|
|
|
<Checkbox
|
|
|
|
|
label={t('Check for updates')}
|
|
|
|
|
checked={enableUpdateCheck}
|
|
|
|
|
onChange={e => setEnableUpdateCheck(e.target.checked)}
|
|
|
|
|
/>
|
|
|
|
|
</Table.TextCell>
|
|
|
|
|
</Row>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<Row>
|
|
|
|
|
<KeyCell>{t('Enable HEVC / H265 hardware decoding (you may need to turn this off if you have problems with HEVC files)')}</KeyCell>
|
|
|
|
|
<Table.TextCell>
|
|
|
|
|
|