Skip to content

Commit 7742eb2

Browse files
committed
Fix table sorting
1 parent 5af9cbd commit 7742eb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BookmarkTab.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class BookmarksPanel(private val callbacks: IBurpExtenderCallbacks) {
7474
table.columnModel.getColumn(14).preferredWidth = 120 // comments
7575
table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)
7676
table.rowSorter = TableRowSorter(model)
77+
table.autoscrolls = true
7778

7879
table.selectionModel.addListSelectionListener {
7980
if (table.selectedRow != -1) {
@@ -314,8 +315,8 @@ class BookmarksModel(private val bookmarkOptions: BookmarkOptions) : AbstractTab
314315
fun addBookmark(bookmark: Bookmark) {
315316
bookmarks.add(bookmark)
316317
displayedBookmarks = bookmarks
317-
refreshBookmarks()
318318
fireTableRowsInserted(displayedBookmarks.lastIndex, displayedBookmarks.lastIndex)
319+
refreshBookmarks()
319320
}
320321

321322
fun removeBookmarks(selectedBookmarks: MutableList<Bookmark>) {

0 commit comments

Comments
 (0)