mirror of https://github.com/qwc/backive.git
28 lines
404 B
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()
|
|
}
|