mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-19 14:14:05 +00:00
Beep
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user