Add isOpen property to MainWindowController.
This commit is contained in:
parent
c2afd03d8c
commit
b32d45cd60
|
@ -14,6 +14,10 @@ private let kWindowFrameKey = "MainWindow"
|
|||
|
||||
class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||
|
||||
var isOpen: Bool {
|
||||
return isWindowLoaded && window!.isVisible
|
||||
}
|
||||
|
||||
// MARK: NSWindowController
|
||||
|
||||
private let windowAutosaveName = NSWindow.FrameAutosaveName(rawValue: kWindowFrameKey)
|
||||
|
|
Loading…
Reference in New Issue