made app start maximised
This commit is contained in:
parent
1b08918d8e
commit
d644758253
2
app.go
2
app.go
@ -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)
|
||||||
}
|
}
|
||||||
|
6
main.go
6
main.go
@ -25,9 +25,9 @@ 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,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user