fix(apps): init Apps in nil

This commit is contained in:
fiftin 2024-07-09 00:37:22 +05:00
parent 413bb8bc0c
commit b9528d8c92
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -806,6 +806,10 @@ func CheckDefaultApps() {
continue continue
} }
if Config.Apps == nil {
Config.Apps = make(map[string]App)
}
Config.Apps[app] = App{ Config.Apps[app] = App{
Active: true, Active: true,
} }