mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[v2] [broken - WIP] Update vanilla template
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user