diff --git a/pkg/hamdeck/config.go b/pkg/hamdeck/config.go index a77b757..d78e765 100644 --- a/pkg/hamdeck/config.go +++ b/pkg/hamdeck/config.go @@ -67,7 +67,7 @@ func (d *HamDeck) ReadConfig(r io.Reader) error { buttons, ok := effectiveConfiguration[ConfigButtons].([]any) if ok { err = d.loadLegacyPage(buttons) - } else { + } else if len(d.pages) == 0 { d.loadEmptyLegacyPage() } if err != nil {