Modify basic configuration and add system tray settings

This commit is contained in:
zyj
2025-11-27 11:10:28 +08:00
parent 0c2a78f91b
commit 9ca94f2d6e
9 changed files with 88 additions and 31 deletions

20
app.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import (
"context"
"github.com/wailsapp/wails/v3/pkg/application"
)
// App struct
type App struct {
ctx context.Context
app *application.App
}
// startup is called when the app starts. The context is saved
// so we can call the runtime methods
func (a *App) ServiceStartup(ctx context.Context, options application.ServiceOptions) error {
a.ctx = ctx
return nil
}