[v2] [broken - WIP] Update vanilla template

This commit is contained in:
Lea Anthony
2021-07-19 23:08:00 +10:00
parent 06ebe5f51f
commit 3e28bfe717

View File

@@ -1,14 +1,13 @@
package main
import (
"context"
"fmt"
"github.com/wailsapp/wails/v2"
)
// App struct
type App struct {
runtime *wails.Runtime
ctx context.Context
}
// NewApp creates a new App application struct
@@ -17,9 +16,9 @@ func NewApp() *App {
}
// startup is called at application startup
func (b *App) startup(runtime *wails.Runtime) {
func (b *App) startup(ctx context.Context) {
// Perform your setup here
b.runtime = runtime
b.ctx = ctx
}
// shutdown is called at application termination