Fix query status messages

This commit is contained in:
Shadowfacts 2020-08-12 19:42:40 -04:00
parent d93b29b274
commit ba45bc6f1b
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 2 deletions

View File

@ -88,14 +88,14 @@ class QueryViewController: NSViewController {
DispatchQueue.main.async {
self.rootNodes = documents.map { Node(document: $0) }
self.title = "\(self.collection.database).\(self.collection.name)"
self.title = self.collection.description
self.documentCountLabel.stringValue = "\(documents.count) document\(documents.count == 1 ? "" : "s")"
if reload {
self.outlineView.reloadData()
}
self.mongoController.statusManager.set("Queried \(collection)", for: .query, override: true)
self.mongoController.statusManager.set("Queried \(self.collection)", for: .query, override: true)
}
}
}