Skip to content

Commit

Permalink
Ver 1.4.5: Fix cancel recording
Browse files Browse the repository at this point in the history
  • Loading branch information
AnyaCoder committed Nov 18, 2024
1 parent 447ffff commit abdfeed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fish/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@ def cancel_recording(self):
self.async_record_runner.cancel()
self.async_record_runner = None
logger.info("cancel recording")
os.remove(self.temp_wavfile) # Delete the temporary audio file
# os.remove(self.temp_wavfile) # Delete the temporary audio file
self.audio_files.append(self.temp_wavfile)
self.voice_mode_enabled = False
self.cancel_button.setVisible(False) # Hide cancel button
self.voice_mode_button.setText("🎤") # Reset the voice mode button
Expand Down

0 comments on commit abdfeed

Please sign in to comment.