From ae082393682a4df34199e0cd57514b4c1495c069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20de=20la=20Martini=C3=A8re?= Date: Thu, 12 Sep 2024 12:53:41 +0200 Subject: [PATCH] Reset library folders when resetting library --- src/stores/useLibraryStore.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stores/useLibraryStore.ts b/src/stores/useLibraryStore.ts index 05c67320..5460533c 100644 --- a/src/stores/useLibraryStore.ts +++ b/src/stores/useLibraryStore.ts @@ -218,6 +218,7 @@ const useLibraryStore = createStore((set, get) => ({ if (confirmed) { await database.reset(); + await config.set('library_folders', []); useToastsStore.getState().api.add('success', 'Library was reset'); invalidate(); }