Move usingElectron from computed into data (#4810)

This commit is contained in:
absidue
2024-03-26 20:27:57 -04:00
committed by GitHub
parent 31c813ddfd
commit b65b1a6be9
3 changed files with 3 additions and 12 deletions
@@ -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
},
@@ -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 () {
+1 -4
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
},