mirror of https://github.com/qwc/backive.git
30 lines
490 B
Go
30 lines
490 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")
|
|
w := app.NewWindow("Backive UI")
|
|
backiveui.Init(app, w, config, database)
|
|
go func() {
|
|
backiveui.NotificationRun()
|
|
}()
|
|
|
|
//w.SetContent(widget.NewLabel("Hello World!"))
|
|
w.ShowAndRun()
|
|
}
|