Fix two item panes occasionally appear at same time (#4561)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run

This commit is contained in:
windingwind 2024-08-13 14:43:14 +08:00 committed by GitHub
parent d879c507a5
commit 0530afd669
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -181,11 +181,6 @@
_contextPaneSplitter.setAttribute('hidden', false);
_contextPane.setAttribute('collapsed', !(_contextPaneSplitter.getAttribute('state') != 'collapsed'));
// It seems that on heavy load (i.e. syncing) the line below doesn't set the correct value,
// therefore we repeat the same operation at the end of JS message queue
setTimeout(() => {
_contextPane.setAttribute('collapsed', !(_contextPaneSplitter.getAttribute('state') != 'collapsed'));
});
this._sidenav.hidden = false;
}