Skip to content

Commit

Permalink
Minor change to prevent name from being reassigned back to itself
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfioravanti committed Sep 9, 2023
1 parent f0b4bb0 commit 546808c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plover_q_and_a/speaker/set_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ def _end_set_speaker_name(
break

speaker_type = getattr(begin_action, _SET_NAME_SPEAKER_TYPE_ATTR)
name = name.upper() if config["SPEAKER_UPCASE"] else name

if config["SPEAKER_UPCASE"]:
name = name.upper()

config["speaker_names"][speaker_type] = name

# NOTE: prev_replace text gets deleted.
Expand Down

0 comments on commit 546808c

Please sign in to comment.