Add clipboard cleanup option for clipboard backend
This commit is contained in:
parent
1423e44008
commit
ccf968a410
9 changed files with 114 additions and 11 deletions
|
|
@ -226,7 +226,13 @@ class Daemon:
|
|||
self.set_state(State.OUTPUTTING)
|
||||
logging.info("outputting started")
|
||||
backend = self.cfg.injection.backend
|
||||
self.desktop.inject_text(text, backend)
|
||||
self.desktop.inject_text(
|
||||
text,
|
||||
backend,
|
||||
remove_transcription_from_clipboard=(
|
||||
self.cfg.injection.remove_transcription_from_clipboard
|
||||
),
|
||||
)
|
||||
except Exception as exc:
|
||||
logging.error("output failed: %s", exc)
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue