mirror of https://github.com/zlatinb/muwire
update any result tabs on trust events
parent
43f3cf9b7a
commit
8f8710801c
|
@ -202,8 +202,6 @@ class MainFrameModel {
|
||||||
void onTrustEvent(TrustEvent e) {
|
void onTrustEvent(TrustEvent e) {
|
||||||
runInsideUIAsync {
|
runInsideUIAsync {
|
||||||
|
|
||||||
// TODO: refresh any search tabs
|
|
||||||
|
|
||||||
trusted.clear()
|
trusted.clear()
|
||||||
trusted.addAll(core.trustService.good.values())
|
trusted.addAll(core.trustService.good.values())
|
||||||
distrusted.clear()
|
distrusted.clear()
|
||||||
|
@ -211,6 +209,10 @@ class MainFrameModel {
|
||||||
|
|
||||||
updateTablePreservingSelection("trusted-table")
|
updateTablePreservingSelection("trusted-table")
|
||||||
updateTablePreservingSelection("distrusted-table")
|
updateTablePreservingSelection("distrusted-table")
|
||||||
|
|
||||||
|
results.values().each {
|
||||||
|
it.view.pane.getClientProperty("results-table")?.model.fireTableDataChanged()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue