Changed how the exiting context manager determines the new parent layout. Instead of relying on splitting the widgets path, we instead just set the parent to the previous layout that we captured when entering the context. This fixes some issues when Maya will insert a '||' into the path, specifically when dealing with popup menus, and docked controls.
Changed how the exiting context manager determines the new parent layout.
Instead of relying on splitting the widgets path, we instead just set the parent to the previous layout that we captured when entering the context.
This fixes some issues when Maya will insert a '||' into the path, specifically when dealing with popup menus, and docked controls.

Also added an as_parent method to Nested instances, this allows you to reuse the object as a parent for more controls.

theodox/mGui