mirror of
https://github.com/nimbold/Firelink.git
synced 2026-07-27 20:40:12 +00:00
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:
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user