From e31653a310756136aaa5fa5dc243b134b8a43aa3 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 8 Dec 2025 14:51:44 +0800 Subject: [PATCH] app store only persist selected keys --- next-ui/src/stores/app.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/next-ui/src/stores/app.ts b/next-ui/src/stores/app.ts index 683ecfb1e..069f444fe 100644 --- a/next-ui/src/stores/app.ts +++ b/next-ui/src/stores/app.ts @@ -4,10 +4,15 @@ import { useDisplay } from 'vuetify' export const useAppStore = defineStore('app', { state: () => ({ + // persisted drawer: !useDisplay().mobile.value.valueOf(), theme: 'system', rememberMe: false, importBooksPath: '', }), - persist: true, + persist: { + key: 'komga.nextui.app', + // explicitly state which keys are stored + pick: ['drawer', 'theme', 'rememberMe', 'importBooksPath'], + }, })