|
@@ -978,9 +978,9 @@ typealias KMMainDocumentCloudUploadHanddler = (@escaping(Bool, String)->()) -> (
|
|
|
return
|
|
|
}
|
|
|
var success = true
|
|
|
- NotificationCenter.default.post(name: Notification.Name(rawValue: "kCPDFDocumentDidBeginWriteNotification"), object: self)
|
|
|
if !self.isHome {
|
|
|
if mainViewController != nil {
|
|
|
+ mainViewController?.savePdfAlertView()
|
|
|
if mainViewController?.document != nil {
|
|
|
self.mainViewController?.commitEditingIfNeed()
|
|
|
|
|
@@ -1019,7 +1019,9 @@ typealias KMMainDocumentCloudUploadHanddler = (@escaping(Bool, String)->()) -> (
|
|
|
if success && isNewCreated && NSDocument.SaveOperationType.saveAsOperation == saveOperation {
|
|
|
isNewCreated = false
|
|
|
}
|
|
|
- NotificationCenter.default.post(name: Notification.Name(rawValue: "kCPDFDocumentDidEndWriteNotification"), object: self)
|
|
|
+ if mainViewController != nil {
|
|
|
+ mainViewController?.savePdfFinishAlertView()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private func _km_saveForWatermark(openAccessoryView: Bool = true, subscribeDidClick: (()->Void)? = nil, callback:@escaping (_ needSave: Bool, _ param: Any...)->Void) {
|