|
@@ -3421,15 +3421,12 @@ namespace PDF_Master.ViewModels
|
|
|
CheckPassword();
|
|
|
PDFViewer.Load();
|
|
|
|
|
|
- //刷新最近文件列表
|
|
|
- OpenFileInfo isnew = SettingHelper.GetFileInfo(targetPath);
|
|
|
- if (isnew == null)
|
|
|
+ //更新打开文件列表
|
|
|
+ if (App.OpenedFileList.Contains(targetPath) == false)
|
|
|
{
|
|
|
- if (App.OpenedFileList.Contains(targetPath) == false)
|
|
|
- {
|
|
|
- App.OpenedFileList.Add(targetPath);
|
|
|
- }
|
|
|
+ App.OpenedFileList.Add(targetPath);
|
|
|
}
|
|
|
+
|
|
|
//打开文件后,不管是新文件还是旧文件都需要更新排序
|
|
|
SettingHelper.SortRecentOpenFiles(targetPath);
|
|
|
|