MCPcopy Create free account
hub / github.com/FlashpointProject/FlashpointUltimateUpdater / main

Function main

main.go:27–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25)
26
27func 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
46func NewInstallState(w fyne.Window) *InstallerState {
47 state := InstallerState{

Callers

nothing calls this directly

Calls 3

NewInstallStateFunction · 0.85
setupLayoutFunction · 0.85
CloseMethod · 0.80

Tested by

no test coverage detected