|
@@ -2410,6 +2410,7 @@ extension KMMainViewController {
|
|
if AutoSaveManager.manager.isSaving{
|
|
if AutoSaveManager.manager.isSaving{
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ AutoSaveManager.manager.isSaveNoti = true
|
|
var num = 0
|
|
var num = 0
|
|
if self.listView.document != nil{
|
|
if self.listView.document != nil{
|
|
num = Int(self.listView.document.pageCount)
|
|
num = Int(self.listView.document.pageCount)
|
|
@@ -2424,9 +2425,10 @@ extension KMMainViewController {
|
|
}
|
|
}
|
|
|
|
|
|
func pdfSaveFinishAlertView(_ sender: NSNotification) {
|
|
func pdfSaveFinishAlertView(_ sender: NSNotification) {
|
|
- if AutoSaveManager.manager.isSaving{
|
|
|
|
|
|
+ if !AutoSaveManager.manager.isSaveNoti{
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ AutoSaveManager.manager.isSaveNoti = false
|
|
if Thread.current.isMainThread {
|
|
if Thread.current.isMainThread {
|
|
self.dismissProgressSheet()
|
|
self.dismissProgressSheet()
|
|
} else {
|
|
} else {
|