File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ class ReflectPanel : AbstractPanel() {
5454 }
5555
5656 fun addReflection (reflection : ReflectedResponse ) {
57- model.addReflection(reflection)
57+ reflections.add(reflection)
58+ if (! reflectionOptions.filtered())
59+ model.refreshReflections()
5860 }
5961}
6062
@@ -121,14 +123,8 @@ class ReflectionsModel : AbstractTableModel() {
121123 }
122124 }
123125
124- fun addReflection (reflection : ReflectedResponse ) {
125- this .reflections.add(reflection)
126- displayedReflections = this .reflections
127- fireTableRowsInserted(displayedReflections.lastIndex, displayedReflections.lastIndex)
128- }
129-
130126 fun removeReflection (reflection : MutableList <ReflectedResponse >) {
131- this . reflections.removeAll(reflection)
127+ reflections.removeAll(reflection)
132128 refreshReflections()
133129 }
134130
You can’t perform that action at this time.
0 commit comments