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 (
"context"
"github.com/wailsapp/wails/v2/pkg/runtime"
)
// App struct
@ -18,4 +19,5 @@ func NewApp() *App {
// so we can call the runtime methods
func (a *App) startup(ctx context.Context) {
a.ctx = ctx
runtime.WindowMaximise(ctx)
}

View File

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