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