diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-16 09:39:59 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-16 09:39:59 +0200 |
| commit | 6ef83d6bdfb6120f9e1fbd145e0bc463196103d1 (patch) | |
| tree | 8eee1f2c29dcbef4ed96b23b08273d42ba0b5d49 /gui/cmd | |
| parent | 27eb6353030953e91a45b0104bd0567e53622090 (diff) | |
| download | krino-6ef83d6bdfb6120f9e1fbd145e0bc463196103d1.tar.gz krino-6ef83d6bdfb6120f9e1fbd145e0bc463196103d1.zip | |
gui: History and undo tab; each plan and undo is its own run
Diffstat (limited to 'gui/cmd')
| -rw-r--r-- | gui/cmd/krino-gui/main.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gui/cmd/krino-gui/main.go b/gui/cmd/krino-gui/main.go index 9b46b22..f9a9759 100644 --- a/gui/cmd/krino-gui/main.go +++ b/gui/cmd/krino-gui/main.go @@ -34,15 +34,9 @@ func main() { os.Exit(2) } e.CacheDir = cacheDir() - sess, err := e.NewSession(false) - if err != nil { - fmt.Fprintln(os.Stderr, "krino-gui: "+err.Error()) - os.Exit(1) - } - defer sess.Close() app := gtk.NewApplication("xyz.labunix.krino", 0) - app.ConnectActivate(func() { ui.NewWindow(app, e, sess).Show() }) + app.ConnectActivate(func() { ui.NewWindow(app, e).Show() }) if code := app.Run(nil); code != 0 { os.Exit(code) } |
