generated from dave/wails-template
Add close and refresh keybinds
This commit is contained in:
5
app.go
5
app.go
@@ -3,6 +3,8 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/wailsapp/wails/v2/pkg/runtime"
|
||||
)
|
||||
|
||||
// App struct
|
||||
@@ -20,6 +22,9 @@ func NewApp() *App {
|
||||
func (a *App) startup(ctx context.Context) {
|
||||
a.ctx = ctx
|
||||
}
|
||||
func (a *App) Close() {
|
||||
runtime.Quit(a.ctx)
|
||||
}
|
||||
|
||||
func (a *App) GetBills() WailsBills {
|
||||
res := WailsBills{}
|
||||
|
Reference in New Issue
Block a user