From d64475825359bf1de9c80b1711a8a0969120b3bf Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sun, 11 Aug 2024 19:58:26 -0400 Subject: [PATCH] made app start maximised --- app.go | 2 ++ main.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app.go b/app.go index a29c6af..bc58f85 100644 --- a/app.go +++ b/app.go @@ -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) } diff --git a/main.go b/main.go index f31e607..f8ea1bf 100644 --- a/main.go +++ b/main.go @@ -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, },