Remove RC menu from uninstalled plugins

This commit is contained in:
downthecrop 2025-09-18 21:21:30 -07:00
parent c74e5f2a4d
commit 5dd299ecdd
2 changed files with 33 additions and 11 deletions

View file

@ -32,6 +32,19 @@ class CustomSearchField(private val parentPanel: JPanel, private val onSearch: (
}
}
// Method to set the text programmatically
fun setText(newText: String) {
text = newText
SwingUtilities.invokeLater {
repaint()
}
}
// Method to get the current text
fun getText(): String {
return text
}
init {
preferredSize = Dimension(230, 30) // SEARCH_FIELD_DIMENSION
background = WIDGET_COLOR // COLOR_BACKGROUND_DARK