From 0c16e2e0571c7997cdd636da50c2d0dde3632aa7 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 2 Nov 2021 03:47:30 +0530 Subject: [PATCH] Fix bug in preferences --- src/store/prefs-store.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/store/prefs-store.js b/src/store/prefs-store.js index f3f41ae..4b2ff88 100644 --- a/src/store/prefs-store.js +++ b/src/store/prefs-store.js @@ -3,7 +3,11 @@ import { get as _get, isString, set as _set } from 'lodash-es' const PrefsStore = { namespaced: true, state: () => ({ - prefs: {} + // Declaring boolean values here because v-simple-checkbox has a bug (???) which renders it unable to have internal state + prefs: { + playerAutoplay: true, + audioOnly: false + } }), mutations: { setPrefs (state, {