Skip to content

Commit 754c13c

Browse files
Fixed bug where Talon list wasn't properly updated when the user disabled a spoken form (#3181)
1 parent 8dcfb86 commit 754c13c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cursorless-talon/src/csv_overrides.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ def update_dicts(
272272
for entry in spoken_form_entries:
273273
for spoken_form in entry.spoken_forms:
274274
lists[entry.list_name][spoken_form] = entry.id
275+
# Make sure that we add empty lists. Otherwise we can't remove spoken forms for existing lists.
276+
if not entry.spoken_forms:
277+
lists.setdefault(entry.list_name, {})
275278
assign_lists_to_context(ctx, lists, pluralize_lists)
276279

277280
if handle_new_values is not None:

0 commit comments

Comments
 (0)