-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathmain.go
More file actions
29 lines (22 loc) · 633 Bytes
/
main.go
File metadata and controls
29 lines (22 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package main
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"github.com/Jacalz/rymdport/v3/internal/assets"
"github.com/Jacalz/rymdport/v3/internal/ui"
"github.com/Jacalz/rymdport/v3/internal/util"
"github.com/rymdport/easypgo"
)
func main() {
stop := easypgo.Generate()
defer stop()
removeTmpCrashDump := util.SetUpCrashLogging()
a := app.NewWithID("io.github.jacalz.rymdport")
assets.SetIcon(a)
w := a.NewWindow("Rymdport")
w.SetContent(ui.Create(a, w))
w.Resize(fyne.NewSize(700, 400))
w.SetMaster()
w.ShowAndRun()
removeTmpCrashDump() // Can't be deferred because we don't want it to run if we panic.
}