2021-10-04 21:56:44 +02:00
|
|
|
package main
|
|
|
|
|
2022-03-07 22:18:29 +01:00
|
|
|
import (
|
|
|
|
"fyne.io/fyne/v2/app"
|
2022-03-07 23:24:02 +01:00
|
|
|
|
|
|
|
"github.com/qwc/backive"
|
|
|
|
backiveui "github.com/qwc/backive/ui"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
config backive.Configuration
|
|
|
|
database backive.Database
|
2022-03-07 22:18:29 +01:00
|
|
|
)
|
2021-10-04 21:56:44 +02:00
|
|
|
|
|
|
|
func main() {
|
2022-03-07 23:24:02 +01:00
|
|
|
|
|
|
|
database.Load()
|
|
|
|
config.Load()
|
2022-04-04 22:19:15 +02:00
|
|
|
backive.Init(config, database)
|
2022-03-21 22:41:24 +01:00
|
|
|
app := app.NewWithID("Backive UI")
|
|
|
|
w := app.NewWindow("Backive UI")
|
2022-03-07 23:24:02 +01:00
|
|
|
backiveui.Init(app, w, config, database)
|
2022-04-04 22:19:15 +02:00
|
|
|
go func() {
|
|
|
|
backiveui.NotificationRun()
|
|
|
|
}()
|
2022-03-07 22:18:29 +01:00
|
|
|
|
2022-03-07 23:24:02 +01:00
|
|
|
//w.SetContent(widget.NewLabel("Hello World!"))
|
2022-03-07 22:18:29 +01:00
|
|
|
w.ShowAndRun()
|
2021-10-04 21:56:44 +02:00
|
|
|
}
|