Browse Source

其他-调整释放逻辑

ZhouJieSheng 2 years ago
parent
commit
6f5389f963
1 changed files with 1 additions and 2 deletions
  1. 1 2
      PDF Office/ViewModels/MainContentViewModel.cs

+ 1 - 2
PDF Office/ViewModels/MainContentViewModel.cs

@@ -166,8 +166,7 @@ namespace PDF_Office.ViewModels
         {
             if(PDFViewer!=null)
             {
-                PDFViewer.Document.Release();
-                //PDFViewer.CloseDocument();
+                PDFViewer.CloseDocument();
             }
         }