File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 22
33## [ Unreleased]
44
5+ ### Fixed
6+
7+ - Selected prompt resets after editing custom prompt.
8+
59## [ 1.5.1] - 2024-01-27
610
711### Fixed
Original file line number Diff line number Diff line change @@ -163,8 +163,13 @@ class AppSettingsConfigurable : BoundConfigurable(message("settings.general.grou
163163 }
164164 .setEditAction {
165165 promptTable.editPrompt()?.let {
166+ val editingSelected = promptComboBox.component.selectedItem == it.first
166167 promptComboBox.component.removeItem(it.first)
167168 promptComboBox.component.addItem(it.second)
169+
170+ if (editingSelected) {
171+ promptComboBox.component.selectedItem = it.second
172+ }
168173 }
169174 }
170175 .setEditActionUpdater {
You can’t perform that action at this time.
0 commit comments