Restore tabs on load should remember if docked with main tab

Can someone please fix this?