|
@@ -219,7 +219,8 @@ namespace PDF_Master.ViewModels.BOTA
|
|
|
if(Settings.Default.AppProperties.InitialVIew.RememberBOTA)
|
|
|
{
|
|
|
var info = SettingHelper.GetFileInfo(pdfview.Document.FilePath);
|
|
|
- if (info != null)
|
|
|
+ //避免新文档因打开文件没有selectedTab信息导致崩溃
|
|
|
+ if (info != null&!string.IsNullOrEmpty(info.BOTASelectedTab))
|
|
|
{
|
|
|
SelectedIndex = info.BOTASelectedInex;
|
|
|
EnterSelectedBar(info.BOTASelectedTab);
|