()
| 25 | ) |
| 26 | |
| 27 | func main() { |
| 28 | a := app.New() |
| 29 | w := a.NewWindow("Flashpoint Ultimate Updater") |
| 30 | |
| 31 | state := NewInstallState(w) |
| 32 | closeDb := func() { |
| 33 | if state.Repo != nil { |
| 34 | _ = state.Repo.Close() |
| 35 | } |
| 36 | } |
| 37 | defer closeDb() |
| 38 | |
| 39 | w.SetContent(setupLayout(w, state)) |
| 40 | w.Resize(fyne.Size{Width: 700, Height: 400}) |
| 41 | |
| 42 | // Show the window |
| 43 | w.ShowAndRun() |
| 44 | } |
| 45 | |
| 46 | func NewInstallState(w fyne.Window) *InstallerState { |
| 47 | state := InstallerState{ |
nothing calls this directly
no test coverage detected