Ariver
2026-05-18 47e0419e81ee015b469cc9f2a891cad8fa505eec
VoiceSnapGo/services/config_service.go
@@ -42,6 +42,18 @@
   return s.cfg.SoundFeedback
}
// SetHotkeyMode sets the voice input interaction mode.
func (s *ConfigService) SetHotkeyMode(mode string) {
   s.cfg.HotkeyMode = config.NormalizeHotkeyMode(mode)
   config.Save(s.cfg)
}
// GetHotkeyMode returns the voice input interaction mode.
func (s *ConfigService) GetHotkeyMode() string {
   s.cfg.HotkeyMode = config.NormalizeHotkeyMode(s.cfg.HotkeyMode)
   return s.cfg.HotkeyMode
}
// SetCopyToClipboard sets whether recognized text remains in the clipboard after input.
func (s *ConfigService) SetCopyToClipboard(enabled bool) {
   s.cfg.CopyToClipboard = enabled