18 lines
346 B
Go
18 lines
346 B
Go
package runtime
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/wailsapp/wails/v2/pkg/menu"
|
|
)
|
|
|
|
func MenuSetApplicationMenu(ctx context.Context, menu *menu.Menu) {
|
|
frontend := getFrontend(ctx)
|
|
frontend.MenuSetApplicationMenu(menu)
|
|
}
|
|
|
|
func MenuUpdateApplicationMenu(ctx context.Context) {
|
|
frontend := getFrontend(ctx)
|
|
frontend.MenuUpdateApplicationMenu()
|
|
}
|