backive/cmd/backive_ui/main.go

28 lines
404 B
Go

package main
import (
"fyne.io/fyne/v2/app"
"github.com/qwc/backive"
backiveui "github.com/qwc/backive/ui"
)
var (
config backive.Configuration
database backive.Database
)
func main() {
database.Load()
config.Load()
backive.Init(config, database)
app := app.NewWithID("Backive UI")
backiveui.Init(app, nil, config, database)
go func() {
backiveui.NotificationRun()
}()
app.Run()
}