sidebar will reopen always

This commit is contained in:
henry 2024-12-14 18:39:10 -06:00
parent 9c11325209
commit ba751d4e39

View file

@ -459,10 +459,8 @@ const getCommandsMap: (
// This is a temporary fix—sidebar.webviewProtocol.request is blocking
// when the GUI hasn't yet been setup and we should instead be
// immediately throwing an error, or returning a Result object
focusGUI();
if (!sidebar.isReady) {
focusGUI();
const isReady = await waitForSidebarReady(sidebar, 5000, 100);
if (!isReady) {
return;