Skip to content

Commit

Permalink
Cleaned up text generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dougollerenshaw committed Oct 8, 2024
1 parent 540b8d9 commit 62dc950
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions codeaide/ui/chat_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,12 @@ def start_recording(self):
for widget in self.widgets_to_disable_when_recording:
widget.setEnabled(False)

# Add "Recording" text to the input box
# Add "Recording..." text to the input box
current_text = self.input_text.toPlainText()
if current_text:
new_text = current_text + " Recording... "
new_text = current_text + " Recording..."
else:
new_text = "Recording... "
new_text = "Recording..."
self.input_text.setPlainText(new_text)
self.input_text.setReadOnly(True)

Expand All @@ -618,9 +618,9 @@ def stop_recording(self):
self.is_recording = False
self.set_record_button_style(False)

# Remove "Recording" text and add "Transcribing..."
# Replace "Recording..." text with "Transcribing..."
current_text = self.input_text.toPlainText()
new_text = current_text.replace("Recording... ", "Transcribing... ")
new_text = current_text.replace("Recording...", "Transcribing...")
self.input_text.setPlainText(new_text)

# Re-enable widgets
Expand Down

0 comments on commit 62dc950

Please sign in to comment.