Add close and refresh keybinds

This commit is contained in:
2024-08-19 11:02:15 +02:00
parent c17e25c358
commit 9cbaf7880b
5 changed files with 25 additions and 0 deletions

5
app.go
View File

@@ -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{}