Skip to content

Use cached templates menu to avoid lag

Menus are updates very frequently. Each time, we read the Templates directory tree and recreate a menu model from it.

This is wasteful and may cause noticeable UI lag if the Templates directory has got a lot of files and subdirectories.

We already have a file monitor in place which notifies us when the content of the Templates directory actually changes, so we can rely on it to know when we need to read the directory again instead; otherwise, we can use the cached menu model.

Fixes #1069 (closed) Relates to #1705 (closed)

Merge request reports