clientui: fix restoring sidepanel when expanding sidebar

Closing and opening the sidebar when the side panel is collapsed
currently expands the side panel to the most recently opened panel,
even if it was collapsed at the time the sidebar was closed, and also
incorrectly doesn't set the nav button as selected.

This changes the behavior of expanding the sidebar to not open the side
panel if it was not opened at the time the sidebar was closed.
This commit is contained in:
Adam
2021-08-16 12:37:47 -04:00
parent b0b41a612a
commit 541e20c592

View File

@@ -211,6 +211,7 @@ public class ClientUI
currentButton.setSelected(false);
currentNavButton.setSelected(false);
currentButton = null;
currentNavButton = null;
}
else
{