gte/cmd/android-app/main.go

23 lines
470 B
Go
Raw Normal View History

2022-10-18 16:58:12 +02:00
package main
import (
"ewintr.nl/gte/cmd/android-app/component"
"ewintr.nl/gte/cmd/android-app/runner"
"fyne.io/fyne/v2/app"
)
2022-10-18 16:58:12 +02:00
func main() {
fyneApp := app.NewWithID("nl.ewintr.gte")
w := fyneApp.NewWindow("gte - getting things email")
conf := component.NewConfigurationFromPreferences(fyneApp.Preferences())
conf.Load()
logger := component.NewLogger()
2022-10-23 12:45:21 +02:00
r := runner.NewRunner(conf, logger)
tabs := r.Init()
w.SetContent(tabs)
2022-10-23 12:45:21 +02:00
go r.Run()
w.ShowAndRun()
2022-10-18 16:58:12 +02:00
}