Fix query status messages
This commit is contained in:
parent
d93b29b274
commit
ba45bc6f1b
|
@ -88,14 +88,14 @@ class QueryViewController: NSViewController {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
self.rootNodes = documents.map { Node(document: $0) }
|
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")"
|
self.documentCountLabel.stringValue = "\(documents.count) document\(documents.count == 1 ? "" : "s")"
|
||||||
|
|
||||||
if reload {
|
if reload {
|
||||||
self.outlineView.reloadData()
|
self.outlineView.reloadData()
|
||||||
}
|
}
|
||||||
|
|
||||||
self.mongoController.statusManager.set("Queried \(collection)", for: .query, override: true)
|
self.mongoController.statusManager.set("Queried \(self.collection)", for: .query, override: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue