Re-add saved tab folder support (lost in merge)

Re-adds code for MainWindow.xaml.cs which was lost in the latest merge.