Skip to content
Commit 2b7b0535 authored by Jonathan Matthew's avatar Jonathan Matthew 🐌
Browse files

display-page-menu: improve menu rebuilds

Rebuilding the full menu is rather expensive, so we should try to
avoid it.

Rather than rebuilding on any change anywhere in the page tree,
just process changes underneath the page that is the root of the
menu.  Rebuilding the 'add to playlist' menu because a track was
added to the play queue (which changes its name) is fairly silly.

Rather than completely rebuilding the menu, insert, remove or
update just the entry that the change affects.
parent 00a252e0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment