Bladeren bron

编辑-Undo和Redo操作刷新缩略图

lvle 1 jaar geleden
bovenliggende
commit
47c6eb249b
1 gewijzigde bestanden met toevoegingen van 10 en 1 verwijderingen
  1. 10 1
      PDF Office/ViewModels/ViewContentViewModel.cs

+ 10 - 1
PDF Office/ViewModels/ViewContentViewModel.cs

@@ -2594,11 +2594,20 @@ namespace PDF_Master.ViewModels
             PDFViewer.UndoManager.Undo();
             PDFViewer.DisableClearSelectAnnot(false);
             PDFViewer.ClearSelectAnnots();
+            //使用编辑功能时Undo刷新缩略图
+            if (PDFViewer.MouseMode == MouseModes.PDFEdit)
+            {
+                events.GetEvent<PageEditNotifyEvent>().Publish(new PageEditNotifyEventArgs(unicode));
+            }
         }
-
         private void Redo()
         {
             PDFViewer.UndoManager.Redo();
+            //使用编辑功能时Redo刷新缩略图
+            if (PDFViewer.MouseMode == MouseModes.PDFEdit)
+            {
+                events.GetEvent<PageEditNotifyEvent>().Publish(new PageEditNotifyEventArgs(unicode));
+            }
         }
 
         /// <summary>