Move usingElectron from computed into data (#4810)

This commit is contained in:
absidue 2024-03-27 01:27:57 +01:00 committed by GitHub
parent 31c813ddfd
commit b65b1a6be9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 12 deletions

View File

@ -26,6 +26,7 @@ export default defineComponent({
},
data: function () {
return {
usingElectron: process.env.IS_ELECTRON,
formatValues: [
'dash',
'legacy',
@ -60,10 +61,6 @@ export default defineComponent({
}
},
computed: {
usingElectron: function () {
return process.env.IS_ELECTRON
},
backendPreference: function () {
return this.$store.getters.getBackendPreference
},

View File

@ -20,6 +20,7 @@ export default defineComponent({
},
data: function () {
return {
usingElectron: process.env.IS_ELECTRON,
minUiScale: 50,
maxUiScale: 300,
uiScaleStep: 5,
@ -122,10 +123,6 @@ export default defineComponent({
areColorThemesEnabled: function() {
return this.baseTheme !== 'hotPink'
},
usingElectron: function () {
return process.env.IS_ELECTRON
}
},
mounted: function () {

View File

@ -39,14 +39,11 @@ export default defineComponent({
},
data: function () {
return {
usingElectron: process.env.IS_ELECTRON,
unlocked: false
}
},
computed: {
usingElectron: function () {
return process.env.IS_ELECTRON
},
settingsPassword: function () {
return this.$store.getters.getSettingsPassword
},