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:
@@ -213,6 +213,20 @@ describe("visual fixtures", () => {
|
||||
expect((await api.getSnapshot()).settings.animatePackageDisclosure).toBe(false);
|
||||
});
|
||||
|
||||
it("keeps a configured archive password list stateful in the isolated renderer", async () => {
|
||||
const dense = createVisualFixture("dense");
|
||||
const api = createVisualElectronApi(dense, "?archive-passwords=configured");
|
||||
|
||||
expect(await api.getArchivePasswordList()).toEqual({
|
||||
passwords: "visual-archive-password-one\nvisual-archive-password-two"
|
||||
});
|
||||
expect((await api.getSnapshot()).settings.archivePasswordListConfigured).toBe(true);
|
||||
|
||||
await api.updateSettings({ archivePasswordList: "updated-visual-password" });
|
||||
|
||||
expect(await api.getArchivePasswordList()).toEqual({ passwords: "updated-visual-password" });
|
||||
});
|
||||
|
||||
it("boots the dense query once and waits for both visible package names", async () => {
|
||||
expect(typeof window).toBe("undefined");
|
||||
const harness = createTestVisualBootstrap(
|
||||
|
||||
Reference in New Issue
Block a user