|
@@ -538,16 +538,17 @@ class KMHomeHistoryFileViewController: NSViewController, NSCollectionViewDelegat
|
|
|
}
|
|
|
self.delete?.historyFileViewController!(self, deleteDocuments: selectFiles)
|
|
|
} else if selectFiles.count > 0 {
|
|
|
- let urls: Array<URL> = NSDocumentController.shared.recentDocumentURLs
|
|
|
- NSDocumentController.shared.clearRecentDocuments(nil)
|
|
|
- DispatchQueue.main.asyncAfter(deadline: .now()) { [self] in
|
|
|
- for (_, url) in urls.enumerated() {
|
|
|
- if !selectFiles.contains(url) {
|
|
|
- NSDocumentController.shared.noteNewRecentDocumentURL(url)
|
|
|
- }
|
|
|
- }
|
|
|
- NotificationCenter.default.post(name: NSNotification.Name.init(rawValue: "KMHomeFileRectChange"), object: NSApp.mainWindow)
|
|
|
- }
|
|
|
+// let urls: Array<URL> = NSDocumentController.shared.recentDocumentURLs
|
|
|
+// NSDocumentController.shared.clearRecentDocuments(nil)
|
|
|
+// DispatchQueue.main.asyncAfter(deadline: .now()) { [self] in
|
|
|
+// for (_, url) in urls.enumerated() {
|
|
|
+// if !selectFiles.contains(url) {
|
|
|
+// NSDocumentController.shared.noteNewRecentDocumentURL(url)
|
|
|
+// }
|
|
|
+// }
|
|
|
+// NotificationCenter.default.post(name: NSNotification.Name.init(rawValue: "KMHomeFileRectChange"), object: NSApp.mainWindow)
|
|
|
+// }
|
|
|
+ self.delete?.historyFileViewController!(self, deleteDocuments: selectFiles)
|
|
|
}
|
|
|
}
|
|
|
|