From c758ad27ed849fd07cd393e2ebe087ec42601dd3 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Sun, 19 Feb 2023 20:56:44 +0100 Subject: [PATCH] Do not beep on windows --- internal/app/app.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/app/app.go b/internal/app/app.go index 9f8618e..221419c 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -187,5 +187,8 @@ func (a *App) OpenDirectory(id, title string) string { } func (a *App) Beep() { + if runtime.GOOS == "windows" { + return + } beeep.Beep(beeep.DefaultFreq, beeep.DefaultDuration) }