Ariver
2026-05-18 8f11df460a247dfcaafd84ce3046605724d11998
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