Skip to content

fix: store the window's own filter in Session Files, not the global list - #682

Merged
Hirogen merged 2 commits into
Developmentfrom
fix/issue666
Jul 29, 2026
Merged

fix: store the window's own filter in Session Files, not the global list#682
Hirogen merged 2 commits into
Developmentfrom
fix/issue666

Conversation

@Hirogen

@Hirogen Hirogen commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

A Session File used to save a copy of the whole global filter list (Settings.FilterList) as its FilterParamsList, while load only ever restored [0]. Sessions were therefore not self-contained: what an .lxp "remembered" as its filter was whatever the global list happened to hold at save time, and the window's actual filter was restored only if it happened to be that list's first entry. The copy was shallow too, so the pre-save IsFilterTail write aliased into the shared global entry.

The snapshot now carries the window's own _filterParams. The on-disk shape is unchanged - FilterParamsList stays a list, holding exactly one entry - and load still reads [0], so existing Session Files (JSON and legacy XML alike) keep loading exactly as before; their trailing entries, which nothing ever restored, are dropped on the next save.

Adds Window Filter / Saved Filter List to the glossary, since the change turns on exactly that distinction.

Closes #666

BRUNER Patrick and others added 2 commits July 29, 2026 09:48
A Session File used to save a copy of the whole global filter list
(Settings.FilterList) as its FilterParamsList, while load only ever
restored [0]. Sessions were therefore not self-contained: what an .lxp
"remembered" as its filter was whatever the global list happened to hold
at save time, and the window's actual filter was restored only if it
happened to be that list's first entry. The copy was shallow too, so the
pre-save IsFilterTail write aliased into the shared global entry.

The snapshot now carries the window's own _filterParams. The on-disk
shape is unchanged - FilterParamsList stays a list, holding exactly one
entry - and load still reads [0], so existing Session Files (JSON and
legacy XML alike) keep loading exactly as before; their trailing entries,
which nothing ever restored, are dropped on the next save.

Adds Window Filter / Saved Filter List to the glossary, since the change
turns on exactly that distinction.

Closes #666
@Hirogen
Hirogen merged commit a28fdd6 into Development Jul 29, 2026
3 checks passed
@Hirogen
Hirogen deleted the fix/issue666 branch July 29, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session Files store the global filter list instead of the window's own filters

1 participant