1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-06-15 19:15:24 +00:00

Fixed error when including theme. (#290)

This commit is contained in:
Maxime Bouillot 2022-01-02 19:30:46 +01:00 committed by GitHub
parent e3e1fc27cd
commit 4a95df8036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,6 +348,9 @@ func Init() error {
cache.SetTimeout(viper.GetInt("cache.timeout"))
setColor := func(k string, colorStr string) error {
if k == "include" {
return nil
}
colorStr = strings.ToLower(colorStr)
var color tcell.Color
if colorStr == "default" {