From 3a4dc3f8763db9399c80fb7f61803fbf30f0c82b Mon Sep 17 00:00:00 2001 From: yusing Date: Tue, 21 Jan 2025 12:56:21 +0800 Subject: [PATCH] fixed dashboard not showing all apps --- internal/homepage/homepage.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/homepage/homepage.go b/internal/homepage/homepage.go index 25ad3164..b45ae616 100644 --- a/internal/homepage/homepage.go +++ b/internal/homepage/homepage.go @@ -1,5 +1,7 @@ package homepage +import "github.com/yusing/go-proxy/internal/utils" + type ( //nolint:recvcheck Config map[string]Category @@ -28,6 +30,14 @@ type ( } ) +func init() { + utils.RegisterDefaultValueFactory(func() *ItemConfig { + return &ItemConfig{ + Show: true, + } + }) +} + func NewItem(alias string) *Item { return &Item{ ItemConfig: &ItemConfig{