Skip to content

Commit 35a2c46

Browse files
committed
fix(clients): add client to combobox after creating
1 parent 0cf4531 commit 35a2c46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/AppSettingsConfigurable.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class AppSettingsConfigurable : BoundConfigurable(message("settings.general.grou
3737
row {
3838
llmClientToolbarDecorator = ToolbarDecorator.createDecorator(llmClientTable.table)
3939
.setAddAction {
40-
llmClientTable.addLlmClient()
40+
llmClientTable.addLlmClient().let {
41+
llmClientConfigurationComboBox.addItem(it)
42+
}
4143
}
4244
.setEditAction {
4345
llmClientTable.editLlmClient()?.let {
@@ -134,8 +136,6 @@ class AppSettingsConfigurable : BoundConfigurable(message("settings.general.grou
134136
}
135137

136138
override fun apply() {
137-
// TODO @Blarc
138-
// AppSettings2.instance.getActiveLLMClient().hosts.add(hostComboBox.item)
139139
promptTable.apply()
140140
llmClientTable.apply()
141141
super.apply()

0 commit comments

Comments
 (0)