fix: UI: Panes: Ensure to properly hide/show panes
https://bugs.activestate.com/show_bug.cgi?id=105099

(integrated from trunk branch change ab7320d by Todd Whiteman <toddw@activestate.com>)