feat(locations): make directory memory opt-in

Keep the last Add-window directory disabled until enabled in Settings > Locations.

Refs #23
This commit is contained in:
NimBold
2026-07-18 12:02:17 +03:30
parent 160e6af945
commit e4d7d5ecf0
3 changed files with 10 additions and 4 deletions
+6
View File
@@ -15,6 +15,12 @@ vi.mock('../utils/logger', () => ({
info: vi.fn()
}));
describe('last used download directory preference', () => {
it('is disabled by default', () => {
expect(useSettingsStore.getState().rememberLastUsedDownloadDirectory).toBe(false);
});
});
describe('useSettingsStore global speed limit persistence', () => {
beforeEach(() => {
vi.clearAllMocks();
+1 -1
View File
@@ -273,7 +273,7 @@ export const useSettingsStore = create<SettingsState>()(
categorySubfoldersEnabled: true,
categorySubfolders: { ...DEFAULT_CATEGORY_SUBFOLDERS },
categoryDirectoryOverrides: {},
rememberLastUsedDownloadDirectory: true,
rememberLastUsedDownloadDirectory: false,
lastUsedDownloadDirectory: null,
approvedDownloadRoots: [],
maxConcurrentDownloads: 3,