Skip to content

Commit

Permalink
Merge branch 'FreeTubeApp:development' into development
Browse files Browse the repository at this point in the history
This is an automated nightly publish.
  • Loading branch information
MarmadileManteater committed Sep 17, 2022
2 parents f13942a + 01fe362 commit 54741b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/renderer/components/general-settings/general-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export default Vue.extend({
'',
'openLinkAfterPrompt',
'doNothing'
]
],
usingElectron: process.env.IS_ELECTRON
}
},
computed: {
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/general-settings/general-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@change="updateCheckForUpdates"
/>
<ft-toggle-switch
v-if="usingElectron"
:label="$t('Settings.General Settings.Fallback to Non-Preferred Backend on Failure')"
:default-value="backendFallback"
:compact="true"
Expand All @@ -39,6 +40,7 @@
</div>
<div class="switchGrid">
<ft-select
v-if="usingElectron"
:placeholder="$t('Settings.General Settings.Preferred API Backend.Preferred API Backend')"
:value="backendPreference"
:select-names="backendNames"
Expand Down
4 changes: 0 additions & 4 deletions src/renderer/store/modules/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,6 @@ const state = {
screenshotFilenamePattern: '%Y%M%D-%H%N%S'
}

if (window.BrowserFS !== undefined) {
state.backendPreference = 'invidious'
}

const stateWithSideEffects = {
currentLocale: {
defaultValue: 'en-US',
Expand Down

0 comments on commit 54741b2

Please sign in to comment.