Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree-view: Rewrite updateCustomLabels #2552

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

TrimmingFool
Copy link
Contributor

@TrimmingFool TrimmingFool commented Aug 14, 2023

It looks like, I forgot in 5fc2a7f to change this.labels[el.id]?.size here:

if(el.id.startsWith('clabel__') && !this.labels[el.id]?.size)

Since updateCustomLabels had the plain label listing as default, it made it hard to understand the tree logic.

Now, the custom labels are explicitly processed as a tree. Empty label nodes which only have one child are flattened unless webui.show_empty_path_labels is true.
Additionally, the children of clabel_cont and lbll now both reside in plabel_cont
and are updated in updateCustomLabels, as well.

Fixes #2548 #2549 #2550
tree-view-screenshots

Now, the custom labels are explicitly processed as a tree.
Empty label nodes which only have one child are flattened
unless `webui.show_empty_path_labels` is `true`.
Additionally, the children of `clabel_cont` and `lbll` now
both reside in `plabel_cont`
and are updated in `updateCustomLabels`, as well.

Fixes Novik#2548 Novik#2549 Novik#2550
@stickz
Copy link
Collaborator

stickz commented Aug 14, 2023

Thanks. I will test and distribute a hotfix. Might not get around to it until next week.

@stickz stickz merged commit 15be3ec into Novik:v4.2 Aug 14, 2023
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.

None yet

2 participants