fix(settings): restore archive password list
Load the stored archive password list through a dedicated trusted IPC channel when extraction settings are opened. Preserve write-only drafts across settings and account updates, guard unsaved edits against late responses, and invalidate stale loads during backup imports. Prepare version 2.0.46 with public release notes.
This commit is contained in:
@@ -39,4 +39,12 @@ describe("renderer settings validation", () => {
|
||||
expect(validateRendererSettingsUpdate({ columnOrderVersion: undefined }, current)).toEqual({});
|
||||
expect(() => validateRendererSettingsUpdate({ obsoleteSetting: true }, current)).toThrow("Settings-Payload ist ungültig");
|
||||
});
|
||||
|
||||
it("keeps archive passwords out of general renderer settings", () => {
|
||||
const password = "fixture-renderer-hidden-archive-password";
|
||||
const projected = createRendererSettings({ ...defaultSettings(), archivePasswordList: password });
|
||||
|
||||
expect(projected.archivePasswordListConfigured).toBe(true);
|
||||
expect(JSON.stringify(projected)).not.toContain(password);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user