Don't try to paste blank text.
This commit is contained in:
parent
3e4cf2ef24
commit
4f6d5853b5
1 changed files with 3 additions and 1 deletions
|
|
@ -39,7 +39,9 @@ fn transcribe_released_action(app: &AppHandle, _shortcut_str: &str) {
|
|||
match tm.transcribe(samples) {
|
||||
Ok(transcription) => {
|
||||
println!("Global Shortcut Transcription: {}", transcription);
|
||||
utils::paste(transcription, ah);
|
||||
if transcription != "" {
|
||||
utils::paste(transcription, ah);
|
||||
}
|
||||
}
|
||||
Err(err) => println!("Global Shortcut Transcription error: {}", err),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue