|
@@ -380,7 +380,13 @@ class KMSearchReplaceWindowController: NSWindowController {
|
|
|
func switchType(_ type: KMSearchReplaceType, animate: Bool = false) {
|
|
|
if type == .replace {
|
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+// KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
+ winC?.showWindow(nil)
|
|
|
+ guard let win = winC?.window else {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ self.window?.addChildWindow(win, ordered: .above)
|
|
|
return
|
|
|
}
|
|
|
}
|