@@ -780,6 +780,9 @@ extension AppDelegate : NSMenuDelegate,NSMenuItemValidation {
}
if action == #selector(closeDocument) {
guard let _windowC = NSApp.mainWindow?.windowController as? KMBrowserWindowController else {
+ if NSApp.mainWindow?.windowController != nil {
+ return true
+ }
return false
let isNewTab = _windowC.browser?.activeTabContents()?.isNewTab ?? false