Disallow refreshing when there is no query VC

This commit is contained in:
Shadowfacts 2020-02-10 22:42:43 -05:00
parent e54c2a0570
commit c4425e50e3
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -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