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