mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
fix: streamline hotkey listener initialization and improve error handling for Linux
This commit is contained in:
@@ -170,7 +170,11 @@ func (l *Listener) eventLoop(hk *xhk.Hotkey) {
|
||||
case <-time.After(20 * time.Millisecond):
|
||||
// Genuine second press. Toggle off.
|
||||
logger.Info("Shortcut activated again: toggling recording (Wayland toggle fallback)")
|
||||
go l.startCallback()
|
||||
if l.stopCallback != nil {
|
||||
go l.stopCallback()
|
||||
} else {
|
||||
go l.startCallback()
|
||||
}
|
||||
isRecording = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user