Skip to content

Commit

Permalink
Remove row selection
Browse files Browse the repository at this point in the history
  • Loading branch information
cak committed May 19, 2020
1 parent 50f9053 commit 5d12dcd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/BookmarkOptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class BookmarkOptions(
if (selectedTag != "Select tag") {
tagComboBox.selectedItem = selectedTag
}
rowSelection()
}
}

Expand All @@ -111,7 +110,6 @@ class BookmarkOptions(
private fun resetSearch() {
filterBar.text = ""
bookmarksPanel.model.refreshBookmarks()
rowSelection()
updateTags()
}

Expand All @@ -121,16 +119,6 @@ class BookmarkOptions(
bookmarksPanel.responseViewer?.setMessage(ByteArray(0), false)
}

private fun rowSelection() {
val rowCount = bookmarksPanel.table.rowCount
if (rowCount != -1) {
bookmarksPanel.table.setRowSelectionInterval(rowCount - 1, rowCount - 1)
} else {
bookmarksPanel.requestViewer?.setMessage(ByteArray(0), true)
bookmarksPanel.responseViewer?.setMessage(ByteArray(0), false)
}
}

fun updateTags() {
tagComboBox.removeAllItems()
tagComboBox.addItem("Select tag")
Expand Down

0 comments on commit 5d12dcd

Please sign in to comment.