Skip to content

Commit

Permalink
Update variable name to reflect convention, & remove unneeded tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Dec 13, 2023
1 parent e47ce92 commit 84ccce6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/renderer/components/ft-video-player/ft-video-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ export default defineComponent({
return playbackRates
},

enableSubtitles: function () {
return this.$store.getters.getEnableSubtitles
defaultSubtitles: function () {
return this.$store.getters.getDefaultSubtitles
},

enableScreenshot: function () {
Expand Down Expand Up @@ -1878,7 +1878,7 @@ export default defineComponent({
}, true)
}

if (this.enableSubtitles) {
if (this.defaultSubtitles) {
this.toggleCaptions()
}
},
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/components/player-settings/player-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export default defineComponent({
return this.$store.getters.getPlayNextVideo
},

enableSubtitles: function () {
return this.$store.getters.getEnableSubtitles
defaultSubtitles: function () {
return this.$store.getters.getDefaultSubtitles
},

forceLocalBackendForLegacy: function () {
Expand Down Expand Up @@ -295,7 +295,7 @@ export default defineComponent({
'updateAutoplayVideos',
'updateAutoplayPlaylists',
'updatePlayNextVideo',
'updateEnableSubtitles',
'updateDefaultSubtitles',
'updateForceLocalBackendForLegacy',
'updateProxyVideos',
'updateDefaultTheatreMode',
Expand Down
5 changes: 2 additions & 3 deletions src/renderer/components/player-settings/player-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
<ft-toggle-switch
:label="$t('Settings.Player Settings.Turn on Subtitles by Default')"
:compact="true"
:default-value="enableSubtitles"
:tooltip="$t('Tooltips.Player Settings.Turn on Subtitles by Default')"
@change="updateEnableSubtitles"
:default-value="defaultSubtitles"
@change="updateDefaultSubtitles"
/>
<ft-toggle-switch
:label="$t('Settings.Player Settings.Enable Theatre Mode by Default')"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/store/modules/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ const state = {
defaultProfile: MAIN_PROFILE_ID,
defaultQuality: '720',
defaultSkipInterval: 5,
defaultSubtitles: false,
defaultTheatreMode: false,
defaultVideoFormat: 'dash',
disableSmoothScrolling: false,
displayVideoPlayButton: true,
enableSearchSuggestions: true,
enableSubtitles: false,
enterFullscreenOnDisplayRotate: false,
externalLinkHandling: '',
externalPlayer: '',
Expand Down
2 changes: 0 additions & 2 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,6 @@ Tooltips:
the playback rate. Press and hold the Control key (Command Key on Mac) and left click the mouse
to quickly return to the default playback rate (1x unless it has been changed in the settings).
Skip by Scrolling Over Video Player: Use the scroll wheel to skip through the video, MPV style.
Turn on Subtitles by Default: If a video does not have subtitles (auto-generated
or otherwise) in your selected locale they will not be enabled by default.
External Player Settings:
External Player: Choosing an external player will display an icon, for opening the
video (playlist if supported) in the external player, on the thumbnail. Warning, Invidious settings do not affect external players.
Expand Down

0 comments on commit 84ccce6

Please sign in to comment.