Skip to content

Commit 8cb0f83

Browse files
committed
feat(editor): add action listener to config button for opening configuration dialog
1 parent 31339d2 commit 8cb0f83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/main/kotlin/cc/unitmesh/devti/mcp/editor/McpPreviewEditor.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ open class McpPreviewEditor(
154154
chatbotSelector = com.intellij.openapi.ui.ComboBox(modelNames)
155155
configButton = JButton("Configure").apply {
156156
isFocusPainted = false
157+
addActionListener {
158+
showConfigDialog()
159+
}
157160
}
158161

159162
selectorPanel.add(chatbotLabel)

0 commit comments

Comments
 (0)