mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-23 01:22:12 +03:00
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:
parent
75b086f12b
commit
8b0b79e43a
@ -110,6 +110,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
function setIfAllExpanded() {
|
function setIfAllExpanded() {
|
||||||
|
// Exercise cache lookup for all files.
|
||||||
|
files.forEach((f) => getExpandedWithCacheFallback(f));
|
||||||
if (files.every((f) => getExpandedWithCacheFallback(f))) {
|
if (files.every((f) => getExpandedWithCacheFallback(f))) {
|
||||||
allExpanded = true;
|
allExpanded = true;
|
||||||
} else if (files.every((f) => getExpandedWithCacheFallback(f) === false)) {
|
} else if (files.every((f) => getExpandedWithCacheFallback(f) === false)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user