Disallow refreshing when there is no query VC

This commit is contained in:
Shadowfacts 2020-02-10 22:42:43 -05:00
förälder e54c2a0570
incheckning c4425e50e3
Signerad av: shadowfacts
GPG-nyckel ID: 94A5AB95422746E5
1 ändrade filer med 1 tillägg och 1 borttagningar

Visa fil

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