mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Disable commands to add a feed or add a folder if the window is already displaying a sheet. Fix #319.
This commit is contained in:
@@ -18,6 +18,13 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||
return isWindowLoaded && window!.isVisible
|
||||
}
|
||||
|
||||
var isDisplayingSheet: Bool {
|
||||
if let _ = window?.attachedSheet {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// MARK: NSWindowController
|
||||
|
||||
private let windowAutosaveName = NSWindow.FrameAutosaveName(rawValue: kWindowFrameKey)
|
||||
|
||||
Reference in New Issue
Block a user