1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-19 14:14:05 +00:00
This commit is contained in:
2023-02-18 15:54:18 +01:00
parent 2b6a4574ac
commit 64caea4d81
6 changed files with 32 additions and 4 deletions

View File

@ -10,6 +10,7 @@ import (
"runtime"
"github.com/garraflavatra/rolens/internal/open_file"
"github.com/gen2brain/beeep"
"github.com/wailsapp/wails/v2/pkg/menu"
"github.com/wailsapp/wails/v2/pkg/menu/keys"
wailsRuntime "github.com/wailsapp/wails/v2/pkg/runtime"
@ -154,3 +155,7 @@ func (a *App) OpenDirectory(id, title string) string {
wailsRuntime.LogInfo(a.ctx, "Chosen directory: "+dir)
return dir
}
func (a *App) Beep() {
beeep.Beep(beeep.DefaultFreq, beeep.DefaultDuration)
}