From b9528d8c9266ba03649924be2a3b5a43a492b411 Mon Sep 17 00:00:00 2001 From: fiftin Date: Tue, 9 Jul 2024 00:37:22 +0500 Subject: [PATCH] fix(apps): init Apps in nil --- util/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/config.go b/util/config.go index 0009c29f..efd0bd69 100644 --- a/util/config.go +++ b/util/config.go @@ -806,6 +806,10 @@ func CheckDefaultApps() { continue } + if Config.Apps == nil { + Config.Apps = make(map[string]App) + } + Config.Apps[app] = App{ Active: true, }