From 1d705b3334d7d575f2352c831e85a5fbbb0c2ab7 Mon Sep 17 00:00:00 2001 From: Arjan H Date: Sun, 25 Sep 2022 08:56:59 +0200 Subject: [PATCH] Fix determining if embedded templates should be used (#55) --- gui/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/main.go b/gui/main.go index 43ed3c6..2ca6067 100644 --- a/gui/main.go +++ b/gui/main.go @@ -2816,7 +2816,7 @@ func init() { } var err error - if viper.GetBool("standalone") { + if *init || viper.GetBool("standalone") { tmpls, err = templates.New().ParseEmbed(embeddedTemplates, "templates/") } else { tmpls, err = templates.New().ParseDir("./templates", "templates/")