made app start maximised

This commit is contained in:
John O'Keefe 2024-08-11 19:58:26 -04:00
parent 1b08918d8e
commit d644758253
2 changed files with 5 additions and 3 deletions

2
app.go
View File

@ -2,6 +2,7 @@ package main
import ( import (
"context" "context"
"github.com/wailsapp/wails/v2/pkg/runtime"
) )
// App struct // App struct
@ -18,4 +19,5 @@ func NewApp() *App {
// so we can call the runtime methods // so we can call the runtime methods
func (a *App) startup(ctx context.Context) { func (a *App) startup(ctx context.Context) {
a.ctx = ctx a.ctx = ctx
runtime.WindowMaximise(ctx)
} }

View File

@ -26,8 +26,8 @@ func main() {
// Create application with options // Create application with options
err := wails.Run(&options.App{ err := wails.Run(&options.App{
Title: "AniTrack", Title: "AniTrack",
Width: 1024, //Width: 1600,
Height: 768, //Height: 900,
AssetServer: &assetserver.Options{ AssetServer: &assetserver.Options{
Assets: assets, Assets: assets,
}, },