Browse Source

Disallow refreshing when there is no query VC

master
Shadowfacts 4 months ago
parent
commit
c4425e50e3
Signed by: Shadowfacts <me@shadowfacts.net> GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      MongoView/View Controllers/DatabaseViewController.swift

+ 1
- 1
MongoView/View Controllers/DatabaseViewController.swift View File

@@ -160,7 +160,7 @@ class DatabaseViewController: NSViewController {
160 160
 
161 161
 extension DatabaseViewController: NSMenuItemValidation {
162 162
     func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
163
-        if menuItem.action == #selector(runQuery(_:)) {
163
+        if menuItem.action == #selector(runQuery(_:)) || menuItem.action == #selector(refresh(_:)) {
164 164
             return queryViewController != nil
165 165
         }
166 166
         return true

Loading…
Cancel
Save