Skip to content

Commit

Permalink
Reset library folders when resetting library
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Sep 12, 2024
1 parent fcdee68 commit ae08239
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stores/useLibraryStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ const useLibraryStore = createStore<LibraryState>((set, get) => ({

if (confirmed) {
await database.reset();
await config.set('library_folders', []);
useToastsStore.getState().api.add('success', 'Library was reset');
invalidate();
}
Expand Down

0 comments on commit ae08239

Please sign in to comment.