-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
34 lines (31 loc) · 854 Bytes
/
main.go
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
30
31
32
33
34
//----------------------------------------------------------------------------------------------------------------------
// (w) 2024 by Jan Buchholz
// Program startup, using Unison UI library (c) Richard A. Wilkes
// https://github.com/richardwilkes/unison
//----------------------------------------------------------------------------------------------------------------------
package main
import (
"SimpleTwofishEditor/crypto"
"SimpleTwofishEditor/ui"
"github.com/richardwilkes/unison"
"os"
)
func main() {
if !crypto.SelfTest() {
os.Exit(255)
}
unison.Start(
unison.StartupFinishedCallback(func() {
err := ui.NewMainWindow()
if err != nil {
panic(err)
}
}),
unison.QuitAfterLastWindowClosedCallback(func() bool {
return true
}),
unison.AllowQuitCallback(func() bool {
return ui.AllowQuitCallback()
}),
)
}