Address issues loading PVSM state from Python shell.
Fixes #17636 (closed). When loading state from Python shell, the GUI didn't realize it was loading state and hence ended up messing up the layout. Fixed that.
Fixes #17636 (closed). When loading state from Python shell, the GUI didn't realize it was loading state and hence ended up messing up the layout. Fixed that.