update any result tabs on trust events

pull/4/head
Zlatin Balevsky 2019-06-02 12:16:28 +01:00
parent 43f3cf9b7a
commit 8f8710801c
1 changed files with 4 additions and 2 deletions

View File

@ -202,8 +202,6 @@ class MainFrameModel {
void onTrustEvent(TrustEvent e) {
runInsideUIAsync {
// TODO: refresh any search tabs
trusted.clear()
trusted.addAll(core.trustService.good.values())
distrusted.clear()
@ -211,6 +209,10 @@ class MainFrameModel {
updateTablePreservingSelection("trusted-table")
updateTablePreservingSelection("distrusted-table")
results.values().each {
it.view.pane.getClientProperty("results-table")?.model.fireTableDataChanged()
}
}
}