Disallow refreshing when there is no query VC
This commit is contained in:
parent
e54c2a0570
commit
c4425e50e3
|
@ -160,7 +160,7 @@ class DatabaseViewController: NSViewController {
|
|||
|
||||
extension DatabaseViewController: NSMenuItemValidation {
|
||||
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
||||
if menuItem.action == #selector(runQuery(_:)) {
|
||||
if menuItem.action == #selector(runQuery(_:)) || menuItem.action == #selector(refresh(_:)) {
|
||||
return queryViewController != nil
|
||||
}
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue