mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
fix: Add cross-platform handling for tray, updater, and icon generation
- Add platform notes for tray startup, shortcut saving, and Linux-only settings - Handle stat error in processRecording (missing file) - Select correct binary name based on OS in updater - Increase tray icon canvas size from 64 to 128 pixels - Update frontend dist asset hash
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
//go:build !linux
|
||||
|
||||
// ============================================================
|
||||
// WINDOWS-ONLY FILE — This file compiles on Windows (and macOS)
|
||||
// but NOT on Linux. It uses robotgo for clipboard/paste which
|
||||
// is Windows-specific in this app. The Linux equivalent is
|
||||
// text_insert_linux.go which uses ydotool instead.
|
||||
// ============================================================
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -37,6 +44,6 @@ func (a *App) insertTranscription(text string) {
|
||||
|
||||
// pasteText simulates Ctrl+V to paste from clipboard
|
||||
func (a *App) pasteText() {
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
robotgo.KeyTap("v", "ctrl")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user