|
@@ -3484,6 +3484,10 @@ struct KMNMWCFlags {
|
|
|
|
|
|
//MARK: 搜索 & 替换
|
|
|
func showSearchPopWindow(type: KMNBotaSearchType, keyborad: String?, replaceText: String?, results: [KMSearchMode]) {
|
|
|
+ if (self.currentWindowController != nil) && ((self.currentWindowController as? KMSearchReplaceWindowController) != nil) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let toolMode = self.listView.toolMode
|
|
|
let isEditing = self.listView.isEditing()
|
|
|
|
|
@@ -3530,6 +3534,13 @@ struct KMNMWCFlags {
|
|
|
viewC?.update(keyborad: handdler.searchKey, replaceKey: handdler.replaceKey, results: handdler.searchSectionResults)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ winC.closeCallback = { [weak self] in
|
|
|
+ if (self?.currentWindowController != nil) {
|
|
|
+ self?.currentWindowController = nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
let targetView = self.pdfToolbarController?.leftViewButton
|
|
|
let point = targetView?.convert(targetView?.frame.origin ?? .zero, to: nil) ?? .zero
|
|
|
// 200 248
|