aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index d362244..b570102 100644
--- a/main.go
+++ b/main.go
@@ -143,8 +143,10 @@ func Init() {
config.Log.Println(err)
}
- if config.Key, err = util.CreateKey(32); err != nil {
- config.Log.Println(err)
+ if config.Key == "" {
+ if config.Key, err = util.CreateKey(32); err != nil {
+ config.Log.Println(err)
+ }
}
if err = util.LoadThemes(); err != nil {