@@ -141,7 +141,9 @@
- (void)selectDocumentRefresh {
self.pdfListView.annotationMode = CPDFViewAnnotationModeNone;
+ [self.annotationBar updatePropertiesButtonState];
[self.annotationBar reloadData];
+ [self.annotationBar updateUndoRedoState];
}
#pragma mark - Private Methods
@@ -160,7 +160,9 @@
#pragma mark - Private
@@ -68,6 +68,10 @@ NS_ASSUME_NONNULL_BEGIN
- (void)reloadData;
+- (void)updatePropertiesButtonState;
+
+- (void)updateUndoRedoState;
- (void)buttonItemClicked_open:(UIButton *)button;
- (void)openSignatureAnnotation:(CPDFSignatureWidgetAnnotation *)signatureAnnotation;
@@ -303,6 +303,12 @@
+- (void)updateUndoRedoState {
+ self.undoBtn.enabled = NO;
+ self.redoBtn.enabled = NO;
+ [self.pdfListView registerAsObserver];
+}
#pragma mark - Action
- (void)buttonItemClicked_Switch:(UIButton *)button {