Fix problem where some files don't remain open

We currently need to explicilty exercise the cache for all files to
update the `expanded` variable that affects rendering.
This commit is contained in:
Mattias Granlund 2023-06-25 17:32:33 +03:00
parent 75b086f12b
commit 8b0b79e43a

View File

@ -110,6 +110,8 @@
});
function setIfAllExpanded() {
// Exercise cache lookup for all files.
files.forEach((f) => getExpandedWithCacheFallback(f));
if (files.every((f) => getExpandedWithCacheFallback(f))) {
allExpanded = true;
} else if (files.every((f) => getExpandedWithCacheFallback(f) === false)) {