Skip to content

Commit

Permalink
Update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Dec 14, 2023
1 parent 6ee911c commit 897d789
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 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
},

defaultSubtitles: function () {
return this.$store.getters.getDefaultSubtitles
enableSubtitlesByDefault: function () {
return this.$store.getters.getEnableSubtitlesByDefault
},

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

if (this.defaultSubtitles) {
if (this.enableSubtitlesByDefault) {
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
},

defaultSubtitles: function () {
return this.$store.getters.getDefaultSubtitles
enableSubtitlesByDefault: function () {
return this.$store.getters.getEnableSubtitlesByDefault
},

forceLocalBackendForLegacy: function () {
Expand Down Expand Up @@ -295,7 +295,7 @@ export default defineComponent({
'updateAutoplayVideos',
'updateAutoplayPlaylists',
'updatePlayNextVideo',
'updateDefaultSubtitles',
'updateEnableSubtitlesByDefault',
'updateForceLocalBackendForLegacy',
'updateProxyVideos',
'updateDefaultTheatreMode',
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/player-settings/player-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<ft-toggle-switch
:label="$t('Settings.Player Settings.Turn on Subtitles by Default')"
:compact="true"
:default-value="defaultSubtitles"
@change="updateDefaultSubtitles"
:default-value="enableSubtitlesByDefault"
@change="updateEnableSubtitlesByDefault"
/>
<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,
enableSubtitlesByDefault: false,
enterFullscreenOnDisplayRotate: false,
externalLinkHandling: '',
externalPlayer: '',
Expand Down

0 comments on commit 897d789

Please sign in to comment.