From f4483e1ee42adbce02e9da1cefbfd9cc003d0205 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 14 Nov 2024 21:52:50 +0200 Subject: [PATCH] remove extraneous dispatches --- src/components/settings_modal/tabs/appearance_tab.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/components/settings_modal/tabs/appearance_tab.js b/src/components/settings_modal/tabs/appearance_tab.js index 03026198..b4b40157 100644 --- a/src/components/settings_modal/tabs/appearance_tab.js +++ b/src/components/settings_modal/tabs/appearance_tab.js @@ -293,33 +293,21 @@ const AppearanceTab = { return key === palette }, setStyle (name) { - this.$store.dispatch('resetThemeV2') this.$store.dispatch('setTheme', name) - this.$store.dispatch('applyTheme') }, setTheme (name) { - this.$store.dispatch('resetThemeV3') this.$store.dispatch('setTheme', name) - this.$store.dispatch('applyTheme') }, setPalette (name, data) { - this.$store.dispatch('resetThemeV2') this.$store.dispatch('setPalette', name) - this.$store.dispatch('applyTheme') this.userPalette = data }, setPaletteCustom (data) { - console.log('APPLY CUSTOM', data) - this.$store.dispatch('resetThemeV2') this.$store.dispatch('setPaletteCustom', data) - this.$store.dispatch('applyTheme') this.userPalette = data }, resetTheming (name) { - this.$store.dispatch('resetThemeV2') - this.$store.dispatch('resetThemeV3') this.$store.dispatch('setStyle', 'stock') - this.$store.dispatch('applyTheme') }, previewTheme (key, input) { let theme3