refactor(Settings): remove seekTimeShiftDuration

This commit is contained in:
Tim 2021-07-16 10:44:47 +02:00
parent ed51814c27
commit c11caaacd0
2 changed files with 0 additions and 33 deletions

View file

@ -28,7 +28,6 @@ const Settings = () => {
subtitlesBackgroundColorInput,
subtitlesOutlineColorInput,
seekTimeDuration,
seekTimeShiftDuration,
bingeWatchingCheckbox,
playInBackgroundCheckbox,
playInExternalPlayerCheckbox,
@ -314,15 +313,6 @@ const Settings = () => {
{...seekTimeDuration}
/>
</div>
<div className={styles['option-container']}>
<div className={styles['option-name-container']}>
<div className={styles['label']}>Arrow keys seek time when holding Shift key</div>
</div>
<Multiselect
className={classnames(styles['option-input-container'], styles['multiselect-container'])}
{...seekTimeShiftDuration}
/>
</div>
<div className={styles['option-container']}>
<div className={styles['option-name-container']}>
<div className={styles['label']}>Auto-play next episode</div>

View file

@ -132,28 +132,6 @@ const useProfileSettingsInputs = (profile) => {
});
}
}), [profile.settings]);
const seekTimeShiftDuration = useDeepEqualMemo(() => ({
options: CONSTANTS.SEEK_TIME_DURATIONS.map((size) => ({
value: `${size}`,
label: `${size}s`
})),
selected: [`${profile.settings.seekTimeShiftDuration}`],
renderLabelText: () => {
return `${profile.settings.seekTimeShiftDuration}s`;
},
onSelect: (event) => {
core.transport.dispatch({
action: 'Ctx',
args: {
action: 'UpdateSettings',
args: {
...profile.settings,
seekTimeShiftDuration: parseInt(event.value, 10)
}
}
});
}
}), [profile.settings]);
const bingeWatchingCheckbox = useDeepEqualMemo(() => ({
checked: profile.settings.bingeWatching,
onClick: () => {
@ -237,7 +215,6 @@ const useProfileSettingsInputs = (profile) => {
subtitlesBackgroundColorInput,
subtitlesOutlineColorInput,
seekTimeDuration,
seekTimeShiftDuration,
bingeWatchingCheckbox,
playInBackgroundCheckbox,
playInExternalPlayerCheckbox,