mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
refactor: remove direct typing for short text in insertTranscription function to streamline clipboard usage
This commit is contained in:
@@ -12,12 +12,6 @@ import (
|
||||
)
|
||||
|
||||
func (a *App) insertTranscription(text string) {
|
||||
if len(text) < 50 {
|
||||
// Type short text directly to avoid clipboard interference
|
||||
robotgo.TypeStr(text)
|
||||
return
|
||||
}
|
||||
|
||||
// Save old clipboard
|
||||
oldClip, clipErr := wailsruntime.ClipboardGetText(a.ctx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user