From 8b785bd71d745c75676566c385984c8ad1a11975 Mon Sep 17 00:00:00 2001 From: Svallinn <41585298+Svallinn@users.noreply.github.com> Date: Wed, 9 Jun 2021 01:18:27 +0100 Subject: [PATCH] Settings: Remove unnecessary handler for `defaultVolume` update --- src/renderer/components/player-settings/player-settings.js | 4 ---- src/renderer/components/player-settings/player-settings.vue | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/renderer/components/player-settings/player-settings.js b/src/renderer/components/player-settings/player-settings.js index 54555a55..ffb6b3c9 100644 --- a/src/renderer/components/player-settings/player-settings.js +++ b/src/renderer/components/player-settings/player-settings.js @@ -119,10 +119,6 @@ export default Vue.extend({ } }, methods: { - parseVolumeBeforeUpdate: function (volume) { - this.updateDefaultVolume(volume / 100) - }, - ...mapActions([ 'updateAutoplayVideos', 'updateAutoplayPlaylists', diff --git a/src/renderer/components/player-settings/player-settings.vue b/src/renderer/components/player-settings/player-settings.vue index 05c1e00b..e3eb108f 100644 --- a/src/renderer/components/player-settings/player-settings.vue +++ b/src/renderer/components/player-settings/player-settings.vue @@ -89,7 +89,7 @@ :max-value="100" :step="1" value-extension="%" - @change="parseVolumeBeforeUpdate" + @change="updateDefaultVolume($event / 100)" />