From cf672824a67f7398b9f8839dbdfd769575a825ba Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 8 Mar 2023 21:05:56 -0500 Subject: [PATCH] im dumb as hell bruh --- examples/artist/main.go | 2 +- tomo.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/artist/main.go b/examples/artist/main.go index 97948ae..cbafc79 100644 --- a/examples/artist/main.go +++ b/examples/artist/main.go @@ -11,8 +11,8 @@ func main () { func run () { window, _ := tomo.NewWindow(480, 360) - window.SetTitle("Draw Test") window.Adopt(testing.NewArtist()) window.OnClose(tomo.Stop) + window.Show() ez.Prof() } diff --git a/tomo.go b/tomo.go index 8f38825..8ed327b 100644 --- a/tomo.go +++ b/tomo.go @@ -16,6 +16,7 @@ var backend Backend // the backend experiences a fatal error. func Run (callback func ()) (err error) { backend, err = instantiateBackend() + if err != nil { return } config := parseConfig() backend.SetConfig(config) backend.SetTheme(parseTheme(config.ThemePath()))