perf: enable default context menu #73

This commit is contained in:
Lykin 2023-11-23 11:12:45 +08:00
parent bfb5407030
commit 28eb393a82
1 changed files with 8 additions and 7 deletions

15
main.go
View File

@ -45,13 +45,14 @@ func main() {
// Create application with options // Create application with options
err := wails.Run(&options.App{ err := wails.Run(&options.App{
Title: "Tiny RDM", Title: "Tiny RDM",
Width: windowWidth, Width: windowWidth,
Height: windowHeight, Height: windowHeight,
MinWidth: consts.MIN_WINDOW_WIDTH, MinWidth: consts.MIN_WINDOW_WIDTH,
MinHeight: consts.MIN_WINDOW_HEIGHT, MinHeight: consts.MIN_WINDOW_HEIGHT,
Frameless: runtime.GOOS != "darwin", Frameless: runtime.GOOS != "darwin",
Menu: appMenu, Menu: appMenu,
EnableDefaultContextMenu: true,
AssetServer: &assetserver.Options{ AssetServer: &assetserver.Options{
Assets: assets, Assets: assets,
}, },